print ("hello World") 

"""
Explanation: Lesson 1 - Hello World with Python and Jupyter
You can execute the line of code below by clicking in the cell below and pressing Shift+Enter.
End of explanation
"""


!python textfiles\hello.py  # ! accesses the operating system without leaving the notebook

%quickref   # brings up some info about jupyter magics

"""
Explanation: Next, copy or type the same line of code into a text file and save the file as hello.py.
You could execute the code in the file using the python command at the system prompt, like this  C:\&gt;python textfiles\hello.py.  
In a Jupyter notebook, an exclamation point is used to send the command to the operating system.  Press Shift+Enter in the cell below to run the code in the hello.py file.
End of explanation
"""


import math   # now I'm just playing around, not following Socratica

"""
Explanation: Play around with what you have learned . . .
End of explanation
"""


def pythag(a,b):
    return math.sqrt(a**2 + b**2)       # defined a python function

pythag(3,4)                             # used my function

math.sin(math.pi / 2)                   # playing with math.sin and math.pi

5 / 2  

5 // 2

"""
Explanation: Pythagorean Theorem:  $c = \sqrt{a^2 + b^2}$
End of explanation
"""


