Back
Either use sys.hexversion or python- V:
>>> import sys>>> sys.hexversion221723736>>> '%x' % sys.hexversion'38908f2'>>> sys.hexversion < 0X07236000True
Or
python -V
From the command line you can use the below command:-
You can use the following video tutorials to clear all your doubts:-
Try using this:
>>> import sys>>> sys.hexversion33883376>>> '%x' % sys.hexversion'20504f0'>>> sys.hexversion < 0x02060000True
>>> import sys
>>> sys.hexversion
33883376
>>> '%x' % sys.hexversion
'20504f0'
>>> sys.hexversion < 0x02060000
True
For more information, you can refer to this: http://docs.python.org/library/sys.html#sys.hexversion
31k questions
32.8k answers
501 comments
693 users