0
Hi, I'm new,trying to figure out why, at the end of this output the word none appears.and when print is indented its hello,none.
3 ответов
+ 2
try this code for example
https://code.sololearn.com/ckpuRAu6VjR9/?ref=app
+ 4
Hi, Chris Kennison !
That’s because the print function dosen’t return any value (except None).
>>> print(print())
None
+ 3
when you use i=print(...) in the loop it prints that
but after the loop when you tell it to print(i) it gives you None because "i" itself has no value