1.

Which of the following functions can help us to find the version of python that we are currently working on?(a) sys.version(b) sys.version()(c) sys.version(0)(d) sys.version(1)This question was posed to me in homework.My enquiry is from Sys Module in section Mapping Functions and Modules of Python

Answer»

The correct answer is (a) sys.VERSION

Explanation: The FUNCTION sys.version can help us to FIND the version of python that we are CURRENTLY working on. For example, 3.5.2, 2.7.3 etc. this function ALSO returns the current date, time, bits etc along with the version.



Discussion

No Comment Found

Related InterviewSolutions