From 50ecd8ad4059309d503fc6c0783fb8a80784965f Mon Sep 17 00:00:00 2001 From: kingtheoden Date: Fri, 2 Nov 2018 15:52:25 -0400 Subject: [PATCH] Fix invalid syntax (#25653) Print now needs brackets to work in python3 --- guide/english/python/lists/list-pop/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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