Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Respostas
+ 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