Previous Lecture | Lecture 6 | Next Lecture |
Lecture 6, Wed 10/18
Creating and using your own modules, interactive programs
Resources from lecture
Announcements:
- Midterm01 is next week during lecture. For more information see the Midterm 1 page
Topics
This lecture will cover topics related to lab04 and project01
- Reusing code in a file by importing it as a module
- Writing an interactive program using input and print
- Using the if
__name__=="__main__":
idiom - Using the random module: specifically the random.randint() and random.choice() methods (needed for project01)
- Using command line arguments (e.g. sys.argv) (if time permits)