

InterviewSolution
Saved Bookmarks
1. |
What function do you use to read a string?(a) input(“Enter a string”)(b) eval(input(“Enter a string”))(c) enter(“Enter a string”)(d) eval(enter(“Enter a string”))I have been asked this question in unit test.Enquiry is from Strings topic in section Strings of Python |
Answer» CORRECT option is (a) INPUT(“Enter a string”) The best I can explain: EXECUTE in SHELL to verify. |
|