- 3

В чем отличия print и return?

20th Feb 2017, 12:10 AM
Ли Харви Освальд
Ли Харви Освальд - avatar
3 ответов
+ 7
печать печать и возвращение возвращение и бог Путин. print outputs a message, return is kinda like giving a value to a variable from a function
20th Feb 2017, 11:46 AM
Ahri Fox
Ahri Fox - avatar
+ 6
nope they're not the same. return can affect the outcome, while print won't
20th Feb 2017, 11:57 AM
Ahri Fox
Ahri Fox - avatar
0
okay, just, x = 5 print(x) and return(x) it's same?
20th Feb 2017, 11:48 AM
Ли Харви Освальд
Ли Харви Освальд - avatar