I'm working on a project and now i'm stuck. I've tried to search but I didn't find anything, maybe because I don't know what I have to search exactly.
the part that I can't figure out is the same at this one
bum = 0
def tryit():
for bum in range(5):
print("Hey")
bum += 1
print(bum)
tryit()
tryit()
tryit()
I want the output to be
hey
hey
hey
hey
hey
5
hey
hey
hey
hey
hey
10
hey
hey
hey
hey
hey
15
instead, the output is
hey
hey
hey
hey
hey
5
hey
hey
hey
hey
hey
5
hey
hey
hey
hey
hey
5
how can i keep increment the variable bum ?
i know that maybe is stupid and sorry but i really can't figure out