← back to unit
Easy
# basics variables
Data Types: str and bool
Two more common types:
str— text, in quotes, like"hi"bool—TrueorFalse
print(type("hi"))
print(type(True))
prints:
<class 'str'>
<class 'bool'>
Your turn: print type("bye"), then print type(False).
💡 need a hint?
pyb-var-types-str-bool.py
loading...