Aw: Re: Re: stuck on time
RobH
rob at despammer.com
Sun Dec 8 07:10:57 EST 2019
On 08/12/2019 10:39, Karsten Hilbert wrote:
>> In an interactive interpreter:
>>
>> def print_time():
>> current_time = time.strftime("%I:%M")
>>
>> returns nothing.
>
> That should be correct.
>
> What happens if you then do
>
> print_time()
>
> inside the interpreter ?
>
> Karsten
>
print_time()
on it's own returns NameError: name 'print_time' is not defined
def print_time();
print_time()
returns nothing
More information about the Python-list
mailing list