Question

We were then supposed to print out the fruit_color_lengthplanttype in that format


Using python

I have three lists.

plant = [apples, peppers, zucchini]

color = [red, yellow, green]

planttype= [fruit, vegetable, vegetable].


We were then supposed to print out the fruit_color_lengthplanttype in that format, where lengthplanttype is the length of the individual words in that list

0 0
Add a comment Improve this question Transcribed image text
Answer #1
plant = ['apples', 'peppers', 'zucchini']
color = ['red', 'yellow', 'green']
planttype= ['fruit', 'vegetable', 'vegetable']

for i in range(len(planttype)):
    print(plant[i] + '_' + color[i] + '_' + str(len(planttype[i])))

\;\;

Add a comment
Know the answer?
Add Answer to:
We were then supposed to print out the fruit_color_lengthplanttype in that format
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please help!! In-lab Activity on DNA, DNA Replication and Pro Directions: Complete the color key belowing...

    please help!! In-lab Activity on DNA, DNA Replication and Pro Directions: Complete the color key belowing the Key to colors Adenine - blue Replication and Protein Synthesis Name the DNA modelin class. then awer the questions about the mode ThymineONOMI Deoxyribose Oangcor Red 1. Using the nitrogen base letters to repre your color key and this sequence of colors for the sen blue-blue-orange-yellow-orange-yello Cytosine yellow Guanine - Green COLOR CHOICES Yellow Purple Red Green Orange u to represent nucleotides, wide...

  • Hello guys just double checking the answers my biology genetics study guide. Please go ahead and...

    Hello guys just double checking the answers my biology genetics study guide. Please go ahead and answer ALL the questions you see below, if you can't answer all then PLEASE let someone else do them! High rating only given to ALL questions complete (questions 1 I posted the handout for it below) >>> 5 Questions >>> Handout 1: QUESTION 1 For the pedigree shows in handout 1, the mutation may be O dominant autosomal recessive autosomal X-linked recessive O A,...

  • There exists a Python variable (a list of lists) called score_card which stores data representing...

    PYTHON 3.7 EXERCISES part 2 Question 1 Question 2 There exists a Python variable (a list of lists) called score_card which stores data representing player results from a golf competition. Each sublist is a triple (i.e., a list of size three) which stores data for one player as follows (in this order): A string representing the player's initials An integer representing the player's gross score An integer representing the player's golfing handicap. A golf player's net score is calculated by...

  • Hello! we are using Python to write this program. we are supposed to use loops in...

    Hello! we are using Python to write this program. we are supposed to use loops in this assignment. I would greatly appreciate the help! Thank you! Write a program that allows the user to play a guessing game. The game will choose a "secret number", a positive integer less than 10000. The user has 10 tries to guess the number. Requirements: we would have the program select a random number as the "secret number". However, for the purpose of testing...

  • I need help finding what mineral each plants are lacking. attached are 9 plants and a...

    I need help finding what mineral each plants are lacking. attached are 9 plants and a table with the mineral and deficiencies. please help me here is the table for the mineral and deficiencies    We were unable to transcribe this imagemants We were unable to transcribe this imageWe were unable to transcribe this image(ΠΟΒ We were unable to transcribe this imageM We were unable to transcribe this image/ / TABLE 12-2. The symptoms of mineral deficiency in greenhouse-grown sunflower...

  • Fit to page ID Page view A Re - + of the cropped tile, width (int)...

    Fit to page ID Page view A Re - + of the cropped tile, width (int) is the width of the cropped tile Retur ed image that is a 3D list of int Example crop ([ LLU ,1, ,2,2), (3,3,3]], [(4,4,4], [5,5,5),(6,6,6]], [[7,7,7], [8,8,8], [9,9,9]] ), (0,0), 1, 2) [[[1,1,1], [2,2,2]]] color2gray(image) Description: It takes a color image (3D list) and returns a new grayscale image (2D list) where each pixel will take the average value of the three color...

  • Absorption and transmission: When a photon of light hits a molecule of gas or a particle...

    Absorption and transmission: When a photon of light hits a molecule of gas or a particle in the atmosphere, there are three possibilities: 1) it can be absorbed (the energy is converted to heat), 2) it can be reflected (it continues on but in a different direction), 3) or it can be transmitted. These processes determine our ability to see distant objects (such as the mountains around Los Angeles and Irvine) and the colors in the sky (such as blue...

  • I just could not figure out how to do all this. For the "print the ones...

    I just could not figure out how to do all this. For the "print the ones you like" part, I need a few examples, 3-4. For the next part, you are welcome to choose any two from the list. In this problem, we will practice making protein structures. Download RasMol from www.umass.edu/microbio/rasmol/index.htm (or http://openrasmol.org), or http other free molecular rendering software. Go to the Protein Data Bank, http On the main page, try searching for and viewing molecules (see also...

  • Hi, I need some help finishing the last part of this Python 1 code. The last...

    Hi, I need some help finishing the last part of this Python 1 code. The last few functions are incomplete. Thank you. The instructions were: The program has three functions in it. I’ve written all of break_into_list_of_words()--DO NOT CHANGE THIS ONE. All it does is break the very long poem into a list of individual words. Some of what it's doing will not make much sense to you until we get to the strings chapter, and that's fine--that's part of...

  • Python Project

    AssignmentBitmap files map three 8-bit (1-byte) color channels per pixel. A pixel is a light-emitting "dot" on your screen. Whenever you buy a new monitor, you will see the pixel configuration by its width and height, such as 1920 x 1080 (1080p) or 3840x2160 (4K). This tells us that we have 1080 rows (height), and each row has 1920 (width) pixels.The bitmap file format is fairly straight forward where we tell the file what our width and height are. When...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT