-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verify-exercise #108
base: main
Are you sure you want to change the base?
verify-exercise #108
Conversation
la pipeline si lamenta dell'indentazione del codice, controlla gli errori e correggi il codice |
if found: | ||
print(f"The number {numero_da_trovare} is present in the array.") | ||
else: | ||
print(f"The number {numero_da_trovare} is [not] present in the array.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
potresti abbreviare questo codice riducendo la ridondanza
salva la differenza di testo in una variabile "not" o "" utilizzando l'operatore ternario
found = False | ||
|
||
for num in N: | ||
if num == numero_da_trovare: | ||
found = True | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
se "estrai" questa parte di codice in una funzione, potresti evitare di utilizzare la variabile found
src/verify.py
Outdated
#Insert number 3 | ||
#The number 3 is [not] present in the array. | ||
|
||
def main(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metti il tipo di ritorno (None)
pylint error, controlla la pipeline |
No description provided.