From bc667b271867304b0cdbae2c1eef5c330b556719 Mon Sep 17 00:00:00 2001 From: Abimbola Ronald Date: Sat, 22 Jul 2023 01:04:54 -0700 Subject: [PATCH] Task 5 --- python-classes/5-square.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python-classes/5-square.py b/python-classes/5-square.py index f375874..cd70dfe 100755 --- a/python-classes/5-square.py +++ b/python-classes/5-square.py @@ -33,8 +33,7 @@ def area(self): def my_print(self): """Prints in stdout the square with the character #""" for x in range(self.__size): - if self.__size == 0: - print("") - return [print("#", end="") for num in range(self.__size)] print() + if self.__size == 0: + print("")