To get python version you are using: import sys print(f"Python version ==> {sys.version}") print(f"Version info ==> {sys.version_info}") #100DaysOfCode #CodeNewbie #Python #Python3 #Pythonprogramming #webdevelopment #programming result:
1
5
3
0
0
Download Image
@codingboydeepak When we write python on command line, it shows version as well.