Functions continuing to ru after returning something?

Paul Rubin no.email at nospam.invalid
Tue Aug 31 10:25:52 CEST 2010


Bradley Hintze <bradley.h at aggiemail.usu.edu> writes:
> my_var = 5
> def my_function():
>     return my_var
>     my_var +=1

def my_function():
  temp = my_var
  my_var += 1
  return temp



More information about the Python-list mailing list