Learn Numbers
Let's talk about numbers!
Type of Number | Usage | Example | Numbers Example | Syntax in Python |
---|---|---|---|---|
Integer | We use integer numbers more for counting | Calculate distance between two cities | 1, 2, 6, 10, ... | int |
Floating-point | We use floating-point numbers for accurate measurements | Define the temperature today | 30.5, 38.9, 10.0006, 60.0 | float |
To check the type of a specific number, use the function type(number)
.
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 8
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.08
Learn Numbers
Swipe to show menu
Let's talk about numbers!
Type of Number | Usage | Example | Numbers Example | Syntax in Python |
---|---|---|---|---|
Integer | We use integer numbers more for counting | Calculate distance between two cities | 1, 2, 6, 10, ... | int |
Floating-point | We use floating-point numbers for accurate measurements | Define the temperature today | 30.5, 38.9, 10.0006, 60.0 | float |
To check the type of a specific number, use the function type(number)
.
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 8