Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please USE the feet given and convert them to meters using a loop and append ONLY. please show me what code would work for this
please USE the feet given and convert them to meters using a loop and append ONLY. please show me what code would work for this specific problem. im using Python 3 juptyer Task-1 (5 points); Convert the values of height (in feet) that is given in the table to the unit of meters. To do this, define a list which will contain all the height values in feet and store it in a variable name heights_feet. Following this, loop over each height value (in feet) in the list heights_feet and convert it to meters (conversion from feet to meters is given below). Append the converted height values in meters to a new list and store it in a new variable name heights_meters. Print heights_meters to the output 1 feet = 0,3048 meters Note: In order to use the values of height in meters for the other tasks in this problem, create an empty list and store it in a variable name heights_meters to which you will append the height values in meters after conversion. Also, refer to Problem-1 to know how to define an empty list and to append values to an empty list 18): WGIVE THE SOLUTION FOR TASK-1 IN THIS CELL: heights_feet-19,15,18,24,27,33,36,42] def var(heights_feet): heights metersi heights feet.apend(e. 3048) return heights_feet
please USE the feet given and convert them to meters using a loop and append ONLY. please show me what code would work for this specific problem. im using Python 3 juptyer
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