CBSE · 083Class XII · 2024Section A1 mark

Question 16

2 April 2024 · Computer Science (083)

Consider the following Python statement : F=open('CONTENT.TXT') Which of the following is an invalid statement in Python ?

Answer

(c) F.seek(0,-1)

Explanation

F.seek(0,-1) is invalid because the reference point (whence) cannot be negative.