What is the output of the following program : print((1,2) + (3,4)) ?
Answers
Answered by
3
Answer:
afdsgfsgsffgffyhgg
Explanation:
rydggjgfygdthddthjk8hhkgey
Answered by
2
The following program : print((1,2) + (3,4)) gives :
Explanation:
- For the given, we have two tuples, and we are printing the concatenation of these tuples.
- i.e print((1, 2) + (3, 4))
- A collection of Python objects separated by comma is called a Tuple.
- In this, we are using the concatenation operator +, to join the two tuples.
- (1,2,3,4) is the answer.
Similar questions