Skip to content

Commit

Permalink
challenge: fix formatting in subtract_two_numbers.py to pass CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
imwaymaran committed Jan 9, 2025
1 parent e52dbaf commit adccb06
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions solutions/subtract_two_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ def subtract_two_numbers(
TypeError: If either num1 or num2 is not a number (int or float).
"""
assert isinstance(
num1, (int, float)
), "First argument must be a number (int or float)"
assert isinstance(
num2, (int, float)
), "Second argument must be a number (int or float)"
assert isinstance(num1, (int, float)), "First argument must be int or float"
assert isinstance(num2, (int, float)), "Second argument must be int or float"

return num1 - num2

0 comments on commit adccb06

Please sign in to comment.