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
About the Author
About the Reviewers

Finding the help window

After we launch Python, typing help() would initiate the help window (as shown in the following lines of code). The prompt of the help window is help>. To quit the help window, we simply press the Enter key once or type quit. After we quit the help window, the Python prompt of >>> would reappear. Now, we launch the help window as shown in the following lines of code:

Welcome to Python 3.3!  This is the interactive help utility.
If this is your first time using Python, you should definitely check out the tutorial on the Internet at
Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules.  To quit this help utility and return to the interpreter, just type "quit".
To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics".  Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam".

After typing keywords, we will have the following information:

>>>help> keywords
Here is a list of the Python keywords.  Enter any keyword to get more help.
False       def         if               raise
None        del         import           return
True        elif        in               try
and         else        is               while
as          except     lambda            with
assert      finally    nonlocal          yield
break       for        not                 
class       from        or                  
continue    global      pass                


On the other hand, after typing topics, we will see what is shown in the following screenshot:

At the moment, a new user doesn't need to understand those topics. Just remember that we have a command to show us all the topics we could use.