Learn Python ITERABLES in 6 minutes! 📃
#python #pythontutorial #pythonprogramming
# Iterables = An object/collection that can return its elements one at a time,
# allowing it to be iterated over in a loop
my_list = [1, 2, 3, 4, 5]
my_tuple = (1, 2, 3, 4, 5)
my_set = {"apple", "orange", "banana", "coconut"}
my_name = "Bro Code"
my_dictionary = {'A': 1, 'B': 2, 'C': 3}
for item in my_list:
print(item)
# DICTIONARIES
for key in my_dictionary:
print(key)
for value in my_dictionary.values():
print(value)
for key, value in my_dictionary.items():
print(f"{key} = {value}")
Видео Learn Python ITERABLES in 6 minutes! 📃 канала Bro Code
# Iterables = An object/collection that can return its elements one at a time,
# allowing it to be iterated over in a loop
my_list = [1, 2, 3, 4, 5]
my_tuple = (1, 2, 3, 4, 5)
my_set = {"apple", "orange", "banana", "coconut"}
my_name = "Bro Code"
my_dictionary = {'A': 1, 'B': 2, 'C': 3}
for item in my_list:
print(item)
# DICTIONARIES
for key in my_dictionary:
print(key)
for value in my_dictionary.values():
print(value)
for key, value in my_dictionary.items():
print(f"{key} = {value}")
Видео Learn Python ITERABLES in 6 minutes! 📃 канала Bro Code
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![What are logical operators? 🔣](https://i.ytimg.com/vi/UiF-QgCBOhM/default.jpg)
![Learn Python DECORATORS in 7 minutes! 🎊](https://i.ytimg.com/vi/U-G-mSd4KAE/default.jpg)
![Learn Python CLASS METHODS in 6 minutes! 🏫](https://i.ytimg.com/vi/g-qRKZD3FgE/default.jpg)
![What is a switch? 🔀](https://i.ytimg.com/vi/Bx9b12FCF5o/default.jpg)
![Learn Python MEMBERSHIP OPERATORS in 8 minutes! 🔎](https://i.ytimg.com/vi/OJ5E7VLsZQM/default.jpg)
![C# method overloading 🤯](https://i.ytimg.com/vi/LjRyW-W4uDs/default.jpg)
![Python default arguments are awesome! 👍](https://i.ytimg.com/vi/m2uURZxex3c/default.jpg)
![Python filter 🍺](https://i.ytimg.com/vi/zwVywypN8LY/default.jpg)
![C reading files 🔎](https://i.ytimg.com/vi/Hzg3kCHJcxI/default.jpg)
![Python *args 📦](https://i.ytimg.com/vi/MNLy8atLI3k/default.jpg)
![C hypotenuse calculator program 📐](https://i.ytimg.com/vi/5mqHzWIzruM/default.jpg)
![What is the ternary operator ❓](https://i.ytimg.com/vi/dWsjatPhWHQ/default.jpg)
![Java final keyword ⛔](https://i.ytimg.com/vi/DezKSLQ0-ls/default.jpg)
![C typedef 📛](https://i.ytimg.com/vi/CI9dRTvzgqE/default.jpg)
![Python concession stand program 🍿](https://i.ytimg.com/vi/PbkIzW_70EI/default.jpg)
![Learn CSS pseudo classes in 5 minutes 👨👧👦](https://i.ytimg.com/vi/fWnXVwULqrE/default.jpg)
![Python multiple assignment 🔠](https://i.ytimg.com/vi/W9VOiVkUazA/default.jpg)
![MySQL: ON DELETE](https://i.ytimg.com/vi/vANfY96ccOY/default.jpg)
![MySQL ORDER BY clause is easy](https://i.ytimg.com/vi/R-5F3BF8IeY/default.jpg)
![Python GUI radiobuttons 🔘](https://i.ytimg.com/vi/5IVvj99yxsc/default.jpg)