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

Publié le: 01 janvier 2023
sur la chaîne: oOSylarTechOo
147
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


Sur cette page du site, vous pouvez voir la vidéo en ligne Part 7 | Python Programming | Creating a for loop using tuples durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur oOSylarTechOo 01 janvier 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 147 fois et il a aimé 3 téléspectateurs. Bon visionnage!