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 First tuple :-"))
tup2 = eval(input("Enter second tuple :-"))
tup3 = tup1 + tup2
print(tup3) 


Output :- 

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

>>>

4 Comments

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

  1. Mene ad pr click kra h sare teko paise mil jayege 😀👍🏻

    ReplyDelete
  2. without using the inbuilt function + can u plz write the code..

    ReplyDelete

Post a Comment

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

Previous Post Next Post