From 46d92da38d7f10f25431c3b2bc95b572dd00ade1 Mon Sep 17 00:00:00 2001 From: KAMLESH KUMAR <67225880+kamleshsah@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:03:20 +0530 Subject: [PATCH] Parenthesis in print statement --- B03898_01_codes/B03898_01_01.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/B03898_01_codes/B03898_01_01.py b/B03898_01_codes/B03898_01_01.py index 5b1c791..4c6c95c 100644 --- a/B03898_01_codes/B03898_01_01.py +++ b/B03898_01_codes/B03898_01_01.py @@ -10,9 +10,9 @@ def __init__(self, my_greeting): self.my_greeting = my_greeting def say_hello(self, name): - print "%s %s" % (self.my_greeting, name) + print("%s %s" % (self.my_greeting, name)) greeting = Greeting("Hello") greeting.say_hello("World") greeting.say_hello("Dog") -greeting.say_hello("Cat") \ No newline at end of file +greeting.say_hello("Cat")