Q. Write a program that inputs two tuples and creates a third, that contains all elements of the first followed by all elements of the second.

 


You can understand by Watching video :-



Answer = 

 

tup1 = eval(input("Enter Frist tuple :-"))
tup2 = eval(input("Enter second tuple :-"))
tup3 = tup1 + tup2
print(tup3) 


Output :- 

Enter Frist tuple :-(1,3,5,7,9)
Enter second tuple :-(0,2,4,6,8)
(1, 3, 5, 7, 9, 0, 2, 4, 6, 8)

>>>


Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post