current python versions code example
Example 1: python show current version
import sys
print("Python version")
print (sys.version)
print("Version info.")
print (sys.version_info)
Example 2: all python versions
Version Latest micro version Release date
3.4 3.4.10 2014-03-16
3.5 3.5.10 2015-09-13
3.6 3.6.13 2016-12-23
3.7 3.7.10 2018-06-27