Book Image

Python for Finance

By : Yuxing Yan
Book Image

Python for Finance

By: Yuxing Yan

Overview of this book

Table of Contents (20 chapters)
Python for Finance
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Finding the version of Python


When Python is launched, the first line will show our current version. Another way is to issue the following two lines of Python code after we launch Python:

>>>import sys
>>>sys.version
'3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)]'
>>>

The first line of command imports a module called sys. A module is a collection of many Python programs serving a special purpose. Understanding a module is critical in learning Python. We will discuss this in more detail in Chapter 5, Introduction to Modules; Chapter 6, Introduction to NumPy and SciPy; Chapter 7, Visual Finance via Matplotlib; and Chapter 8, Statistical Analysis of Time Series.