Skip to content

Commit

Permalink
from go to py 3
Browse files Browse the repository at this point in the history
  • Loading branch information
holenyt committed Feb 16, 2024
1 parent a7dc259 commit 5740a5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/src/lab_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def checkSalary(salary: int) -> int:
try:
if (salary>=15000):
return salary
raise ValueError;
except ValueError:
print("Ошибка: Минимальная зарплата 15000")
return 15000
raise ValueError("Ошибка: Минимальная зарплата 15000");
except ValueError as error:
print(str(error));

0 comments on commit 5740a5c

Please sign in to comment.