Some Basic Python Tuple Programs-2
Python Program to check if a tuple and a list are identical tuple = (9, 8, 7, 6, 5) list = [9, 8, 7, 6, 5] #using loop flag1 = True for i in range(0, len(tuple)): if tuple[i] != list[i]: flag1 = False break if flag1: print(f”{tuple} and {list} are identical”) else: print(f”{tuple} and {list} … Read more