diff --git a/guide/english/python/lists/list-pop/index.md b/guide/english/python/lists/list-pop/index.md index 9a01a6af50..290e189b4b 100644 --- a/guide/english/python/lists/list-pop/index.md +++ b/guide/english/python/lists/list-pop/index.md @@ -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