+ 4
problem with fonction
Hi, I want to code something but I have a problem with a fonction. For example: def add_1(y,n): if y==("hello"): n+=1 a="hello" e=0 add_1(a,e) print(e) Why at the end e=0 and not e=1 Thank you
3 Answers
+ 3
check this code.
https://code.sololearn.com/cXfScLaA83Of/?ref=app
+ 3
you printed variable e instead of function
+ 3
thanks you!