python3 print verson 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())