Python - Creating Lists Tutorial (Shopping List)

preview_player
Показать описание
Learn how create a list in Python using a single line of code. In this video you will also learn the 2 different ways to display what's in a list - using a print function and a for loop.

~ CODE ~

shopping_list = ["apples", "bananas", "carrots", "potatoes"]

for i in shopping_list:
print(i)
Рекомендации по теме
Комментарии
Автор

Very good man that was amazing passed my exam because of ya

umershamsi