Report Bug

Qus

What will be the output?

a = [1, 2, 3]
b = a
b.append(4)
print(a)
Qus

What will be the output?

a = [1, 2, 3]
b = a
b.append(4)
print(a)


A. [1, 2, 3]
B. [1, 2, 3, 4]
C. [4]
D. Error


Solution
B. [1, 2, 3, 4]



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