How do you display version of python in repl?
How do you display version of python in repl?
Voters
CodeLongAndPros
You can do this:
import sys print(sys.version)
Or, for 2/3:
try: print "Python2" except: print("Python3")
SushiPython
In the bash terminal (Ctrl Shift S) type ‘python —version’.
kurtk2000
How about in repl?
@SushiPythonCodeLongAndPros
@kurtk2000 You press C-S-s to get to
bash
SushiPython
@kurtk2000 That is for repl.
doesn’t it literally say it in the console before you run the code?