Answered step by step
Verified Expert Solution
Question
1 Approved Answer
List of lists As a data scientist, you'll often be dealing with a lot of data, and it will make sense to group some of
List of lists
As a data scientist, you'll often be dealing with a lot of data, and it will make sense to group some of this data.
Instead of creating a flat list containing strings and floats, representing the names and areas of the rooms in your house, you can create a list of lists. The script in the editor can already give you an idea.
Don't get colqused here: "hallway" is a string, while hall is a variable that represents the float you specified earlier.
Instructions
Finish the list of lists so that it also contains the bedroom and bathroom data. Make sure you enter these in order!
Print out house ; does this way of structuring your data make more sense?
Print out the type of house Are you still dealing with a list?
Take Hint XP
Incorrect Submission
You didn't assign the correct value to house. Have another look at the instructions. Extend the list of lists so it incorporates a list for each pair of room name and room area. Mind the order and typos!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started