python print version from script code example
Example 1: python print version
import sys
print(sys.version)
Example 2: python print version
import sys
print('Python version')
print(sys.version)
print('Version info.')
print(sys.version_info)
import sys
print(sys.version)
import sys
print('Python version')
print(sys.version)
print('Version info.')
print(sys.version_info)