+ 2

What if no arguments are passed to the seek function?

options 1.Then file position is set to start of file 2.Then file position is set to end of file 3.file position remains unchanged 4.error

28th Aug 2017, 3:27 AM
abhinav koyada
abhinav koyada - avatar
3 ответов
+ 2
shamanthaka shamu this post is 2 yrs old. Lol. The OP doesn't even appear to be active anymore. Your response doesn't even pertain to the original question. You could have asked a new question, or for help in understanding. Anyway, here is some info on the method tell() with some examples. https://www.tutorialspoint.com/python3/file_tell.htm https://www.google.com/amp/s/www.geeksforgeeks.org/JUMP_LINK__&&__python__&&__JUMP_LINK-tell-function/amp/ https://www.w3schools.com/python/ref_file_tell.asp https://docs.python.org/3/tutorial/inputoutput.html See 7.2.1
23rd Jun 2020, 6:12 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
The seek method requires at least the first parameter (offset) be met. The second (from_what/whence) is optional. If no arguments are passed to the method then you will receive: TypeError: seek() takes at least 1 argument (0 given)
28th Aug 2017, 5:31 AM
ChaoticDawg
ChaoticDawg - avatar
0
Demonstrate the use of tell () method in files with a supporting code snippet.
23rd Jun 2020, 5:48 AM
shamanthaka shamu
shamanthaka shamu - avatar