What will be the output of the following Python code? [code] a=[1,2,3] b=a.append(4) print(a) print(b) [/code]

Ánh Dương

New member
What will be the output of the following Python code?
Code:
a=[1,2,3]
b=a.append(4)
print(a)
print(b)
A.
[1,2,3,4]
[1,2,3,4]
B.
[1, 2, 3, 4]
None
C. Syntax error
D.
[1,2,3]
[1,2,3,4]
 

Tìm kiếm

Back
Top