Python: Data Types & Operators
Python: Data Types & Operators
What do you already know about data types and operators in Python?
At the end of the lesson you will:
◘ Know 4 main Python data types,
◘ Use math operators,
◘ Write code with true/false comparisons.
◘ Get ready 75% coding in class!
Today's Mission
1. Use int, float, str, bool. 2. Try math operators. 3. Compare values with code. Class = You coding!
Four Core Data Types
Q: What type is "Hello"? A: str Options: int, float, str, bool.
Quiz Time!
int: Whole numbers. age = 14 30a float: Decimals. price = 3.99 4ac str: Text. name = "Claude" 539 bool: True/False. logged_in = True
Examples