Question: Exercise Create a list As opposed to int, bool etc., a list is a compound data type; you can group values together: a = i

Exercise
Create a list
As opposed to int, bool etc., a list is a compound data type; you can group values together:
a=is
b= nice
mylist =[my, list, a,b]
After measuring the height of your family, you decide to collect some information on the house you're living in. The areas of the different parts of your house are stored in separate variables for now, as shown in the script.
(-) Instructions
100P
Create a list, areas , that contains the area of the hallway ( hall ), kitchen (kit ), living room ( liv ), bedroom ( bed ) and bathroom ( bath ), in this order. Use the predefined variables.
Print areas with the print() function.
 Exercise Create a list As opposed to int, bool etc., a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!