Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

LorenzoMaci
Copy link

No description provided.

@infra-blue
Copy link
Collaborator

la pipeline si lamenta dell'indentazione del codice, controlla gli errori e correggi il codice

Comment on lines +16 to +19
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.")
Copy link
Member

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

Comment on lines +9 to +14
found = False

for num in N:
if num == numero_da_trovare:
found = True
break
Copy link
Member

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():
Copy link
Member

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)

@Helias
Copy link
Member

Helias commented Nov 10, 2023

pylint error, controlla la pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants