Robotics & Artificial Intelligence
Identify suitable data type(s). One has been done for you.
| Scenario | Data Type |
|---|---|
| Storing area of square | int, float |
| Storing age of a person | |
| Storing age, height and weight in a single data type | |
| Storing age, height and weight in a single data type (It should not be changed, once stored) | |
| Storing age, height and weight in a single data type (index name should reflect that the data corresponds to age, height, and weight) |
Getting Started
3 Likes
Answer
| Scenario | Data Type |
|---|---|
| Storing area of square | int, float |
| Storing age of a person | int |
| Storing age, height and weight in a single data type | list |
| Storing age, height and weight in a single data type (It should not be changed, once stored) | tuple |
| Storing age, height and weight in a single data type (index name should reflect that the data corresponds to age, height, and weight) | dictionary |
Answered By
1 Like
Related Questions
What would be the output of following Python code snippet:
maintenance ={"car" : 2000, "furniture" : 1000, "Filter" : 1500} print(maintenance["car"]) print(maintenance["Filter"])Python is an important language for data analysis.
Python is popular due to its simplicity and strong libraries.
The object-oriented programming (OOP) paradigm organises data and functions into reusable structures.