Report Bug

Qus

Output of the code:

t = (10, 20, 30)
t += (40,)
print(t)
Qus

निम्न code का output क्या होगा?

t = (10, 20, 30)
t += (40,)
print(t)


A. (10, 20, 30)
B. (10, 20, 30, 40)
C. Error
D. (40,)


Solution
B. (10, 20, 30, 40)



Explanation
<p>Tuple concatenation creates a new tuple containing all four values.</p><p><br></p><p>Tuple concatenation से सभी चार values वाला नया tuple बनता है।</p>
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad