Skip to content

Commit

Permalink
Update hours_to_minutes.py
Browse files Browse the repository at this point in the history
Deleted unnecessary brackets.
  • Loading branch information
tosan-okome authored Jan 8, 2025
1 parent 17c3eb7 commit f3a84f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions solutions/hours_to_minutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def hours_to_minutes(hours: float) -> int:
Examples:
>>> hours_to_minutes(4)
(240)
240
>>> hours_to_minutes(0.5)
(30)
30
>>> hours_to_minutes(24)
(1440)
1440
>>> hours_to_minutes(12)
(720)
720
"""
if not isinstance(hours, (int, float)):
raise TypeError(f"Invalid input type: {type(hours)}. Must be int or float.")
Expand Down

0 comments on commit f3a84f0

Please sign in to comment.