import sys
#version
print ('Python Version: ',sys.version)
#version information
print ('\nVersion Information: \n',sys.version_info)
#hex version
print ('\nHex Version:\n',sys.hexversion)
#check in if condition or check version of running python script
if sys.version_info >= (3,0):
print ('\nversion is greater than v3.0')
the code will return the currently running python script version
and has some more codes to learn..
and has some more codes to learn..
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.