« All Events
6 PM – Intro To Python – Shawn
July 30 @ 6:00 pm - 7:00 pm
What We Did
- Learned more about the difference of functions with and without return values
- Learned how to generate random numbers and choices
Homework
- Create a new file called July30_FunctionReview
- Copy and paste the code from the “July30_FunctionReview” 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 July30_FunctionsWithReturnValueandRandom:
- Solve problem #7 from https://www.ayclogic.com/list-inputs-if-and-else-loops-and-function/
- 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?
- Contact us at gamas@ayclogic.com or allison@ayclogic.com if you have any questions or need any help.