print python version form program code example
Example 1: python print version
import sys
print(sys.version)
Example 2: python version command notebook
import platform
print(platform.python_version())
import sys
print(sys.version)
import platform
print(platform.python_version())