#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}")
On this page of the site you can watch the video online Learn Python iterables in 6 minutes! 🔂 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 01 July 2024, share the link with friends and acquaintances, this video has already been watched 28,896 times on youtube and it was liked by 768 viewers. Enjoy your viewing!