Aw: Re: Re: Re: stuck on time
Karsten Hilbert
Karsten.Hilbert at gmx.net
Sun Dec 8 08:06:24 EST 2019
> >> In an interactive interpreter:
> >>
> >> def print_time():
> >> current_time = time.strftime("%I:%M")
> >
> > What happens if you then do
> >
> > print_time()
> >
>
> print_time()
> on it's own returns NameError: name 'print_time' is not defined
Notice the "then" above ?
More precisely: directly one after the other without leaving the interpreter ...
Karsten
More information about the Python-list
mailing list