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

Junior - lab functions done #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

linharesjunior
Copy link

No description provided.

@sh-ih
Copy link

sh-ih commented Oct 16, 2023

Junior,

Awesome job on this lab! ⭐

Keep using such clear names to name your variables, because that makes it easier for anyone to understand and reuse your code.

Just a comment, on question 5, you could simplify your code by calling the functions you created on the previous two questions:

def oper_all(arr, oper):
    if oper == "+":
        return sum_all(arr)
    elif oper == "*":
        return mult_all(arr)

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.

2 participants