Skip to content
← Back to Community
How do you display version of python in repl?
Profile icon
kurtk2000

How do you display version of python in repl?

Voters
Profile icon
kurtk2000
Comments
hotnewtop
Profile icon
Raphtalia

doesn’t it literally say it in the console before you run the code?

Profile icon
CodeLongAndPros

You can do this:

import sys print(sys.version)

Or, for 2/3:

try: print "Python2" except: print("Python3")
Profile icon
SushiPython

In the bash terminal (Ctrl Shift S) type ‘python —version’.

Profile icon
kurtk2000

How about in repl? @SushiPython

Profile icon
CodeLongAndPros

@kurtk2000 You press C-S-s to get to bash

Profile icon
SushiPython

@kurtk2000 That is for repl.