I dont know where there are error in my fuction


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/python-beginner-nzzVa/3/4?curriculum_id=4f89dab3d788890003000096

image

<In what way does your code behave incorrectly? Include ALL error messages.>

Oops, try again. Your code looks a bit off. Check the console window for errors!

I got this message

<What do you expect to happen instead?>
I made two function by using “for”

but, i think these fuctions have to get the same result. but its not happened.

Can you explain me about the differences between Method 1 and Method 2 in detail?

```python

Replace this line with your code.

<do not remove the three backticks above>

#2

In your 2nd function you might have to use

result += numbers[i]


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.