Skip to content

Commit

Permalink
refactor: eseguito refactor del codice seguendo la code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Darakuu committed Oct 30, 2023
1 parent 03427c6 commit 6b719e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
numbers = [1, 2, 3, 12, 89, 69, 133, 56, 99, 100000]


def look_for_number(number, array):
if number in array:
return True
else:
return False
def look_for_number(number: int, array: list[int]) -> bool:
return number in array


wantedInt = int(input("Scegli un numero da cercare nell'array: "))
Expand Down

0 comments on commit 6b719e9

Please sign in to comment.