1.

Which of the following will run without errors?(a) round(45.8)(b) round(6352.898,2,5)(c) round()(d) round(7463.123,2,1)This question was posed to me in quiz.The above asked question is from Core Data types topic in section Variable Names, Operators, Data Types & Numeric Types of Python

Answer»

Correct option is (a) round(45.8)

For EXPLANATION: EXECUTE help(round) in the shell to get DETAILS of the parameters that are PASSED into the round FUNCTION.



Discussion

No Comment Found

Related InterviewSolutions