Q. Write a program to input any values for two tuples. Print it, interchange it and then compare them.
Answer =
tup1 = eval(input("Enter First tuple :-")) tup2 = eval(input("Enter Second tuple :-")) tup1,tup2 = tup2,tup1 print("First tuple :-",tup1) print("Second tuple :- ",tup2) print(tup1 < tup2) print(tup1 > tup2) print(tup1 == tup2)
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )