Saved Bookmarks
| 1. |
Which function is used to read single line from file?(a) Readline()(b) Readlines()(c) Readstatement()(d) Readfullline() |
|
Answer» The correct choice is (b) Readlines() To explain: The readline function reads a single line from the file fh = open(“filename”, “r”) content = fh.readline(). |
|