What is the format for doing coding coach challenges(python)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the format for doing coding coach challenges(python)?

Do I define a function and then call it? Do I put an *input* line of code in the argument? Do I just return the result? Thanks in advance!

21st Mar 2020, 9:47 AM
Radical Zuß
Radical Zuß - avatar
1 Answer
+ 2
1. Yes, you will have to define a function before you call it so that it is possible to execute. 2. For coding challenges, 1st line should generally be input(), so that the Sololearn app can input the values. 3. You have to use print() to give the output or result
21st Mar 2020, 9:56 AM
Taranjeet
Taranjeet - avatar