+ 1

what's the problem?šŸ˜¢šŸ˜¢ this program doesn't have output.why?

https://code.sololearn.com/c1pda1Q047zJ/?ref=app

29th Apr 2022, 12:11 PM
Hoda
5 Answers
+ 3
def add(x,y): return x+y print(add(3,5)) #or this one def qq(e,r): qq=e+r return qq print(qq(5,3)) #now how can I use return?!!
29th Apr 2022, 1:17 PM
Sanjyot21
Sanjyot21 - avatar
0
Return keyword just return the value in this case qq , it doesn't print anything.......... You can use print(qq) to see the returned value
29th Apr 2022, 12:49 PM
Sanjyot21
Sanjyot21 - avatar
0
OK, but what about add function?
29th Apr 2022, 12:59 PM
Hoda
0
Hoda use this code
29th Apr 2022, 1:17 PM
Sanjyot21
Sanjyot21 - avatar
0
yes now I understand. thank you so much ā¤ā¤
29th Apr 2022, 1:19 PM
Hoda