- This event has passed.
1:30 PM – Intro to Python – Isaac
June 13 @ 1:30 pm - 3:30 pm
Today, we learned
- Data types (integer, double/float, string, boolean)
- String formatting (concatenation or f-strings)
- Variable name rules
- Changing data types with str() and int()
- Math operations (+, -, *, /, %)
- Modulo is remainder
- String quote types (“, ‘, “””, ”’)
- Escape sequences (\n, \”)
- Getting input from the user with input()
- Input is always a string
- if elif else
Homework
- Try code from pages 20-23 in the textbook. Save it in Jun_13_StringHomework.py
- Try code from pages 79-81 in the textbook. Save it in Jun_13_IfElse.py
- Note: Code starting with >>> is done in the shell, but you should put it in your file.