How participate in challenges (python)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How participate in challenges (python)?

I would like to participate in the challenges of this app, but I always get the message "no output". What do I need to do to get an output?

19th Nov 2022, 1:57 PM
Sluwe Schildpad
3 Answers
+ 2
You defined the function. If you want to use the function, you need to call it.
19th Nov 2022, 2:08 PM
Lisa
Lisa - avatar
+ 1
You need to use the print() to print output. If you need help with your code, please link your code.
19th Nov 2022, 2:00 PM
Lisa
Lisa - avatar
0
siblings = int(input()) popsicles = int(input()) #your code goes here def func(siblings, popsicles): if popsicles%siblings==0: print("give away") else: print("eat them yourself")
19th Nov 2022, 2:07 PM
Sluwe Schildpad