a program to tranverse a tuple inputted by the user
Answers
Answered by
2
Answer:
# create a list of tuples with student
# details
name = [('sravan',7058,98.45),
('ojaswi',7059,90.67),
('bobby',7060,78.90),
('rohith',7081,67.89),
('gnanesh',7084,98.01)]
# iterate using for loop
for x in name:
# iterate in each tuple element
for y in x:
print(y)
Similar questions