Python 2D lists 📎

preview_player
Показать описание
Python 2D lists two dimensional list

# 2D lists = a list of lists

drinks = ["coffee","soda","tea"]
dinner = ["pizza","hamburger","hotdog"]
dessert = ["cake","ice cream"]

food = [drinks,dinner,dessert]

print(food[0][0])

#Python #2D #lists
––––––––––––––––––––––––––––––
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

# 2D lists = a list of lists

drinks = ["coffee", "soda", "tea"]
dinner = ["pizza", "hamburger", "hotdog"]
dessert = ["cake", "ice cream"]

food = [drinks, dinner, dessert]

print(food[0][0])

BroCodez
Автор

love your content, thank you for doing what you're doing!

venom
Автор

Ur amazing, keep doing what you do ;D

vladthelad
Автор

yo bro this video is so good so im gonna comment

alirezasohrab
Автор

thank you so much this was so helpful!

selimb
Автор

commenting just to support the channel

jhassee
Автор

Commenting for the youtube algorithm and cause Bro code is my bro o7

orionstorm
Автор

what if i want to print every element of every list?
Thanks for tutorialreally needed it

kirankumardo
Автор

What if I want to pair coffee with pizza

xichavolimpia