Skip to content

Commit

Permalink
changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
GiuseppeBnn committed Nov 8, 2023
1 parent 1c47f4c commit cf83ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/verify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
array = [2,4,6,8,10,12,14,16,18,20]

def verify(number : int) -> bool:
def is_element_in_list(number : int) -> bool:
if number in array:
print("Numero presente")
return True
Expand All @@ -10,5 +10,5 @@ def verify(number : int) -> bool:

if __name__ == "__main__":
n = int(input("Inserisci numero: "))
verify(n)
is_element_in_list(n)

0 comments on commit cf83ec4

Please sign in to comment.