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