I have a problem when I make my function in the playground and give it statements when I call it it shows No output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I have a problem when I make my function in the playground and give it statements when I call it it shows No output.

def hello(): print("hi there) hello

17th Dec 2020, 2:11 PM
David Lahu
David Lahu - avatar
6 Answers
+ 2
David Lahu def hello(): print("hi there") hello()
17th Dec 2020, 2:16 PM
R_A
+ 1
Could you provide your code?
17th Dec 2020, 2:14 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
A function, gives a None output if it isn't used in conjunction with the print() function or if it doesn't contain an embedded print() function.
17th Dec 2020, 2:16 PM
Calvin Thomas
Calvin Thomas - avatar
+ 1
David Lahu ☺️ You're most welcome.
17th Dec 2020, 6:21 PM
R_A
+ 1
You have not completed the string
18th Dec 2020, 7:15 PM
Sayyam Jain
Sayyam Jain - avatar
0
R_A thanks 😅
17th Dec 2020, 2:18 PM
David Lahu
David Lahu - avatar