Which of the following functions can help us to find the version of python that we are currently working on?

Questions & AnswersCategory: Programming LanguageWhich of the following functions can help us to find the version of python that we are currently working on?
Geek Boy Staff asked 2 years ago

Which of the following functions can help us to find the version of python that we are currently working on?
a. sys.version(1.
b. sys.version(0.
c. sys.version(.
d. sys.version

1 Answers
Geek Boy Staff answered 2 years ago

a. sys.version(1.
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.