Question: Question 4 . Create a list that describes a new fourth row of this table. The details can be whatever you want, but the list
Question
Create a list that describes a new fourth row of this table. The details can be whatever you want, but the list must contain two values: the number of petals an int value and the name of the flower a string For example, your flower could be "pondweed"! A flower with zero petals
orchid
myflower "orchid"
myflower
'orchid'
checktestsqpy
All tests passed!
Question
myflower fits right in to the table from chapter Complete the cell below to create a table of seven flowers that includes your flower as the fourth row followed by otherflowers. You can use withrow to create a new table with one extra row by passing a list of values and withrows to create a table with multiple extra rows by passing a list of lists of values.
# Use the method withrow to create a new table that includes myflower
fourflowers
# Use the method withrows to create a table that
# includes fourflowers followed by otherflowers
# Notice that otherflowers is a list of lists.
otherflowers 'lavender' 'birds of paradise' 'tulip'
sevenflowers
sevenflowers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
