(Cognizant) Cognizant Test Practice Test
(Cognizant) Cognizant Test Cognizant Coding and Programming Round
What will be the output of the following Python code?
```python
x = [1, 2, 3]
y = x
y.append(4)
print(x)
```
Select your answer
A
[1, 2, 3]
B
[1, 2, 3, 4]
C
[4, 1, 2, 3]
D
Error
Need a hint?
(H)