Write a Python program to get the Python version you are using. Import sys
A string containing the version number of the Python interpreter plus additional information on the build number and compiler used. This string is displayed when the interactive interpreter is started.
Version info:
A tuple containing the five components of the version number: major, minor, micro, release level, and serial. All values except release level are integers; the release level is 'alpha', 'beta', 'candidate', or 'final'. The version_info value corresponding to the Python version 2.0 is (2, 0, 0, 'final', 0). The components can also be accessed by name, so sys.version_info[0] is equivalent to sys.version_info.major and so on.
Note: 'sys' module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter.
Python Code:
import sys
print("Python version")
print (sys.version)
print("Version info.")
print (sys.version_info)
Guys just comment me that it is helpful or not.
...........................................
Song: MBB - Beach (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Video Link: • MBB - Beach (Vlog No Copyright Music)
En esta página del sitio puede ver el video en línea Python program to get the Python version you are using.-import sys de Duración hora minuto segunda en buena calidad , que subió el usuario Parvat Computer Technology 26 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 955 veces y le gustó 13 a los espectadores. Disfruta viendo!