- This event has passed.
5 PM – Intro To Python
August 29, 2020 @ 5:00 pm - 6:00 pm
- We reviewed what’s going to be in the quiz 2 weeks from today:
- variables and data types
- IF ELIF ELSE statements
- List
- For loop, while loop
- How to continuously ask user a question and stop the program when user enter “quit” or “exit”.
- How to get input from shell.
- By the way in the class earlier, I could not finish this problem
- Loop through each element inside the “names” list
- if it is either “shawn” or “logan”, print “<name> is very cool”. Otherwise just print the name with first letter capitalize.
-
names = ["justin", "brian", "logan", "shawn"] for name in names: if name in ("shawn", "logan"): print(f"{name.title()} is very cool") else: print(name.title())
- Next week is labor day weekend so no class next week.
- Homework:
- Study for your quiz which is going to be on Sept 12.
- For your quiz, make sure you have a gmail account.