👤

Based on what you have learned about Numbers and Floating-point in Python. Identify the numerical data type (integer or float) that would best fit the situation:
- ‘Number of students in a class’
- Money saved from unspent allowance
- Weight of tomatoes in kilograms
- Number of chairs sold by a store
- Distance traveled in kilometers


Sagot :

Answer:

Explanation:

- ‘Number of students in a class’

- integer

- Money saved from unspent allowance

- float

- Weight of tomatoes in kilograms

- float

- Number of chairs sold by a store

- integer

- Distance traveled in kilometers

- integer