मराठी

Write the missing statement to complete the following code: file = open("example.txt", "r") data = file.read(100) ____________ #Move the file pointer to the beginning of the file next_data - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Write the missing statement to complete the following code: 

file = open("example.txt", "r")
data = file.read(100)
____________ #Move the file pointer to the 
beginning of the file
next_data = file.read(50)
file.close()
कोड लेखन
रिकाम्या जागा भरा

उत्तर

file = open("example.txt", "r")
data = file.read(100)
file.seek(0) #Move the file pointer to the 
beginning of the file
next_data = file.read(50)
file.close() 
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×