Python MCQ Questions Set-8

Here is an interesting Python Multiple choice questions Quiz. Attempting this MCQ will help you to evaluate your knowledge and skills. Assume that there is a file ‘somefile.txt’ with the given contents.Contents of somefile.txt:This is first line.This is second line.This is third line. What will be the output of the following code?file = open(“somefile.txt”, “r”)content1 … Read more