0
print()
the print() function simply prints but how is returning a value to foo? Please explain. I tried placing something inside the parenthesis of print() but foo always came out to be equal to None
4 odpowiedzi
+ 7
If you do print() nothing will be returned except \n
+ 6
Really? Oh I think when you assign it to a variable, None is really the output.
+ 2
even if I write in print('foo') and assign it to a variable , nothing is returned and the variable when printed gives out a None
0
try input() instead of print