- This event has passed.
10 AM – Intro to Python – Saagar
July 9, 2022 @ 10:00 am - 11:00 am
Today we did:
- If, elif, else statements and when/how we use them to execute code based on specific condition(s), else is not always necessary
- Important of indentation and colons in distinguishing if blocks and else blocks
- How to use different boolean operators like AND (all conditions must be true), OR (at least one condition must be true), and NOT
- How to use <, <=, >, >=, ==, != with ints/floats and ==, != for strings
Homework
- Create python file called “July9_IfElseHomework.py”. Do homework from page 79-81 from the textbook. Similar to the first homework, follow along the textbook and copy the code to your file and run it.