+ 1
"""it is a way to organize the information to manipulate in your system. example: instead of declaring 3 fruit variables and write it on a piece of code you put it inside a list and iteract with it. If you need another fruit you just put the name inside the list you dont have to manage another variable name.""" fruit_name1='orange' fruit_name2='banana' fruit_name3='lemon' print(fruit_name1) print(fruit_name2) print(fruit_name3) fruits=['orange','banana','lemon'] for fruit in fruits: print(fruit)
2nd Nov 2016, 3:14 PM
Daniel Mello
Daniel Mello - avatar