Skip to content

Commit

Permalink
challenge_28_p
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Glucose committed Jan 12, 2025
1 parent 661548d commit d42f0b9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions solutions/challenge_28_p/perfect_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,3 @@ def perfect_numbers_in_range(start, end):
if start > end:
raise ValueError("Start should not be greater than end")
return [num for num in range(start, end + 1) if is_perfect_number(num)]


if __name__ == "__main__":
try:
# Example usage
found_perfect_numbers = perfect_numbers_in_range(1, 1000)
print("Perfect numbers between 1 and 1000:", found_perfect_numbers)
except ValueError as e:
print(f"Error: {e}")

0 comments on commit d42f0b9

Please sign in to comment.