Chapter 1

Typing through Chapter 1 of Slatkin, 2015. How to get the version of the Python being used from the terminal and from within a module:


In [1]:
import sys
print(sys.version)
print(sys.version_info)


3.4.3 (default, Mar  8 2015, 10:25:06) 
[GCC 4.9.2]
sys.version_info(major=3, minor=4, micro=3, releaselevel='final', serial=0)

In [ ]:


In [ ]: