Skip to content

Commit

Permalink
Task 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronnie5562 committed Jul 22, 2023
1 parent 3332368 commit bc667b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python-classes/5-square.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("")

0 comments on commit bc667b2

Please sign in to comment.