{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MatthewLectureSep22.py - def func(a,b return a b...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
def func (a,b): return a+b print(func(3,4)) if __name__ == "__main__": #enter this branch when you run A.py elif __name__ == "A": #enter this branch when you import A.py # dir(math) ---> tells all the functions in math (must have imported it first) # help(math.sqrt) ---> explains what the function does # docstrings are important for assignment, must use it to explain functions
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}