- This event has passed.
3 PM – Intro to Python – Sebastian
April 6 @ 3:00 pm - 4:00 pm
Today We Did
- Reviewed conditionals like if, elif, and else
- Learned about user input
- User input can be retrieved using input()
- All user input turns into a string data type
- Class code: https://drive.google.com/drive/folders/1CtwIu3EczMxWU83o5ECJylqtfCmTKvb9
- AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework to the corresponding project’s folder in your Google Drive
- Homework:
- 5-3, 5-4 from page 84 in the book.
- Complete the following prompt, and add to the homework file:
- Get input from shell: “What grade are you in? ”
- If user enter ‘1’ or ‘1st’ or ‘first’ or ‘pertama’ then print ‘You are learning to read.’
- If user enter ‘2’ or ‘2nd’ or ‘second’, then print ‘You are learning multiplication.’
- If user enter ‘3’ or ‘3rd’ or ‘third’, then print ‘You are learning shapes.’
- Else, then print ‘I don’t know what you are studying.’