+ 2

Whta's the difference btn returning a value and actually printing out the value on the user computer screen ?

As referred to Methods .

5th Dec 2016, 6:58 AM
Ntirpang Louis
Ntirpang Louis - avatar
4 Answers
+ 2
@nedim thanks
5th Dec 2016, 7:37 AM
Ntirpang Louis
Ntirpang Louis - avatar
+ 1
Both are used for different proposes printing used for display result on screen. Returning value used for further computation by calling method.
17th Dec 2016, 5:48 PM
Roy
0
Oh god this is the 3rd time im answering to this question: When you return a value without printing it, that value will only be seen by the computer. Think of it as some sort of feedback. When you call the function you are expecting it to give you(the computer) something. When you print the function, it will display the RETURNED VALUE. so print is taking that value and printing it on the console.
5th Dec 2016, 7:33 AM
Nedim Kanat
Nedim Kanat - avatar
0
return value only seen by complier and print display the value
12th Jan 2017, 4:34 AM
Pramod Patil
Pramod Patil - avatar