temidayo adeleke
last year
Temidayocountry asked

If 34 is an integer and "dayo" is a string, what is 3.2 in Python?

Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi temidayo,

3.2 is a float, which means a number with a decimal point.

So:

  • 34 is an int

  • "dayo" is a str

  • 3.2 is a float

If you have more questions, I am here to help 😊

Python
This question was asked as part of the Getting started with Python course.