Modifying each element in a list in a function


#1




I really don't know what I am doing wrong here> Someone help me with this.


#2

a function ends the moment a return keyword is reached, if a return keyword is reached in a loop, the loop will break, your loop breaks in its first iteration


#3

In line 6, you have to "return x" outside of "for " loop.
It will sort out.


#4

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