What type is the number 3.14?
In Python every value has a type:
• whole numbers (1, 42, -7) → int
• numbers with a decimal point (3.14, 2.5) → float
• text in quotes ("hello") → str
• True / False → bool
Pick the correct answer below.
What type is the number 3.14?
In Python every value has a type:
• whole numbers (1, 42, -7) → int
• numbers with a decimal point (3.14, 2.5) → float
• text in quotes ("hello") → str
• True / False → bool
Pick the correct answer below.
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet