Зміст курсу
Introduction to Python for Data Analysis
Introduction to Python for Data Analysis
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)
.
Дякуємо за ваш відгук!