Skip to content

Commit 58b6759

Browse files
Apply suggestions from code review
1 parent c9c63a8 commit 58b6759

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

maths/perfect_number.py

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def perfect(number: int) -> bool:
8181
number = int(input("Enter a positive integer: ").strip())
8282
except ValueError:
8383
msg = "number must be an integer"
84-
print(msg)
8584
raise ValueError(msg)
8685

8786
print(f"{number} is {'' if perfect(number) else 'not '}a Perfect Number.")

0 commit comments

Comments
 (0)