All problems
EasyPython Basics
Variables and types
Python has four common types you will use every day: int, float, str, and bool. Print the type of each variable below, then add one of your own.
- #types
- #variables
Sample input
a = 42 b = 3.14 c = "Nettms" d = True
Sample output
<class 'int'> <class 'float'> <class 'str'> <class 'bool'>
variables-types.py
Output
Press "Run code" to execute.
