« All Events
6 PM – Intro To Python – Shawn
August 13 @ 6:00 pm - 7:00 pm
What We Did
- Learned how to do the Magic 8 Ball project (version 2) using random.choice
- Learned about Python errors (AKA bugs) and how to correct them
Homework
- Corey:
- Create a new file called Aug13_StarWars:
- Solve all problems #1-4 from https://www.ayclogic.com/intro-to-python/star-wars-problem
- In your own words, answer these questions by writing them as comments in Python (Remember: you can write comments by putting a # in front of words in Thonny)
- What is the difference between functions with return values and functions without return values?
- What is the purpose of functions? How are they helpful?
- Everyone:
- Create a new file called Aug13_Magic8Ball_V2_Answers
- Copy and paste the code from the “Aug13_Magic8Ball_V2_Answers” file found in our class Google Drive. (This was the class code we reviewed)
- Store this file along with your class lesson notes/code so you can study it in the future if needed
- Create a new file called Aug13_PythonBugs1
- Fix all errors in the code from https://www.ayclogic.com/fixing-python-bugs
- Create a new file called Aug13_PythonBugs2
- Fix all errors in the code from https://www.ayclogic.com/fix-python-bugs-2
- Create a new file called Aug13_Quiz2Preparation
- Solve all problems #1-4 from https://www.ayclogic.com/intro-to-python-exercises-for-quiz-2\
- Hint: Remember these steps to fix Python errors
- Click the bottom blue line
- Read the error message
- Fix the error and rerun
- Contact us at gamas@ayclogic.com or allison@ayclogic.com if you have any questions or need any help