human
I am working on the file "PNC_01Basics.ipynb".
The first task is:
Open Notebook
Intro to python/ipython/jupyter

Options
python - least burden on system
ipython - least burden on user
jupyter - least burden on next user

Running interactively python/ipython
Terminal
Integrated Development Environments
Notebook

Running saved scripts
from terminal $ python /path/to/file.py
from python `>>> execfile('/path/to/file.py')
from ipython In[1] %run /path/to/file.py
from spyder open in editor


*Windows replace $ with C:\&gt;
Basic Functions
def foo(bar1, bar2, foo = 1, a = 2):
    return 'foo' + bar1

created with def name and call signature followed by colon
defined by commands following signature until the first unindented command

Most Useful Function... ever.
help:
- ? in ipython or jupyter
- it will return a docstring for that element or type
Really Useful Functions
type:
- All things in python are objects (even classes).
- type is a function object that returns the type of another object.
dir:
- List of methods and properties
print:
- display representation of object
Can you write Python program for it?

What is a the Python program you requested?
assistant
#Here is the Python program you requested.

def foo(bar):
    return 'foo.' + bar

print(foo('bar'))

try:
    print(foo(1))
except Exception as e:
    print(e)