quiz question answer


Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

def compute(n):
    i = n
    sum = 0
    while i <= 10:
        sum = sum + i
        i = i + 1
    return sum

Welcome to the forums, @prachipatel38!

You should not be posting your school/uni assignments to this forum. It’s not right to expect others to do the work for you and your tutor will not understand how to help you if you are submitting work from someone else. It is against our policy here.

Please feel free to post questions that will help you understand the building blocks of programs, but don’t post tasks again.


Welcome to the forums, @prachipatel38!
On Replit Ask, it is of policy that you we cannot give you answers to your school assignments. We are happy to assist you with any questions that may help you understand coding to its fullest, but we cannot directly give you the answer.

1 Like