Programming Examples
Write a Python program to iterate through a Tuple using for loop.
Write a Python program to iterate through a Tuple using for loop.
If input is: (‘apple’, ‘banana’, ‘orange’) then output should be: apple
banana
orange
Solutiont = ('apple', 'banana', 'orange')
for item in t:
print(item)
Outputapple
banana
orange
