Fix invalid syntax (#25653)

Print now needs brackets to work in python3
This commit is contained in:
kingtheoden
2018-11-02 15:52:25 -04:00
committed by Aditya
parent d7ab835589
commit 50ecd8ad40

View File

@ -12,8 +12,8 @@ If the index passed to the pop() method is not in the range, it throws IndexErro
```py
cities = ['New York', 'Dallas', 'San Antonio', 'Houston', 'San Francisco'];
print "City popped is : ", cities.pop()
print "City at index 2 is : ", cities.pop(2)
print("City popped is : ", cities.pop())
print("City at index 2 is : ", cities.pop(2))
```
#### Output