StepsEasy
Python Data Types - Example
Run
Reset
Destroy & Close
← Back to lesson
Code Editor
python
# Variables and data types name = "Alice" # str age = 25 # int height = 5.6 # float is_student = True # bool colors = ["red", "green", "blue"] # list print(f"Name: {name}") print(f"Age: {age}") print(f"Type of name: {type(name)}") print(f"Colors: {colors}")
Result
Click "Run" to execute the code...
Loading runtime...
Ready
PYTHON | In-Browser Execution