Part 7 | Python Programming | Creating a for loop using tuples

Опубликовано: 19 Декабрь 2024
на канале: oOSylarTechOo
124
3

This is part 7 of a series of python coding that I am having fun with and want to show others that are interested or stuck.

Code Example:

#Creating a for loop using tuples

#Create the tuple
mytuple = ("apple", "banana", "cherry")

for x in mytuple:
print(x)

#for loop for each letter in a word
mytuple = ("banana")

for x in mytuple:
print(x)

#python #pythonprogramming #pythontutorial #pythonforbeginners #shorts

Music: Paid Subscription with Wondershare Filmora