PracticeTestGeeks home

(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