Numeric Types
Numeric types
Type | Usage | Examples |
---|---|---|
int | Typically used for counting | 1, 2, 6, 10, ... |
float | Used for accurate measurements | 30.5, 38.9, 10.0006, 60.0 |
complex | Complex numbers have their uses in many applications related to mathematics | x+iy |
To check the type of a specific variable, use the function type(variable).
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 2
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 2.7
Numeric Types
Glissez pour afficher le menu
Numeric types
Type | Usage | Examples |
---|---|---|
int | Typically used for counting | 1, 2, 6, 10, ... |
float | Used for accurate measurements | 30.5, 38.9, 10.0006, 60.0 |
complex | Complex numbers have their uses in many applications related to mathematics | x+iy |
To check the type of a specific variable, use the function type(variable).
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 2