Please ensure that JavaScript is running.
Learn
Challenges
Blogs
About
Contact
Learn
Challenges
Blogs
About
Contact
Home
/
Learn
/
Python
/
Data Types
/
Numbers
/
Quiz
Data Types
Which of the following is an example of a float in Python?
-3
0
1
5.0
Which of the following is an example of an integer in Python?
-3
1.0
0.5
5.0
What are integers in Python?
Negative numbers only
Positive numbers only
Whole numbers without decimal points
Whole numbers with decimal points
x = 5 y = 3 print(x + y)
What is the result of the following code in Python?
2
1.6666666666666667
8
15
What are floating-point numbers in Python?
Whole numbers without decimal points
Positive numbers only
Negative numbers only
Whole numbers with decimal points
Congratulations. You have achieved
/5.
Try Again?