Q. What would be the data type of variable data in the following statements?

(a) data = f.read()

(b) data = f.read(10)

(c) data = f.readline()

(d) data = f.readlines()


Answer =


(a) String type.

(b) String type.

(c) String type.

(d) List type.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post