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

9th May 2017, 2:44 PM
Tushar Jain
Tushar Jain - avatar
4 Respuestas
+ 7
If you do print() nothing will be returned except \n
9th May 2017, 2:44 PM
Complex
Complex - avatar
+ 6
Really? Oh I think when you assign it to a variable, None is really the output.
9th May 2017, 2:49 PM
Complex
Complex - avatar
+ 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
9th May 2017, 2:48 PM
Tushar Jain
Tushar Jain - avatar
0
try input() instead of print
9th May 2017, 4:05 PM
LordHill
LordHill - avatar