51. What will be the output of the following Python code?
str = input("Enter your input: ");
print "Received input is : ", str
str = input("Enter your input: ");
print "Received input is : ", str
52. What is unpickling?
53. The readlines() method returns . . . . . . . .
54. What is the output of the following code:
with open('data.txt', 'r') as file:
lines = file.readlines()
print(len(lines))
with open('data.txt', 'r') as file:
lines = file.readlines()
print(len(lines))
55. To read the next line of the file from a file object infile, we use . . . . . . . .
56. How can you rename a file in Python?
57. What is the pickling?
58. What is the output of the following code:
with open('data.txt', 'r') as file:
content = file.read(10)
print(content)
with open('data.txt', 'r') as file:
content = file.read(10)
print(content)