Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,857 questions

51,778 answers

573 users

How to check what version of python is running the code in Python

2 Answers

0 votes
import sys

print(sys.version)


'''
run:

3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]

'''

 



answered Nov 10, 2018 by avibootz
0 votes
import sys

print(sys.version_info)


'''
run:

sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0)

'''

 



answered Nov 10, 2018 by avibootz

Related questions

1 answer 227 views
2 answers 110 views
2 answers 135 views
1 answer 239 views
1 answer 126 views
...