+ 3

When i run this code it output 'None' of the output what should i do so that the 'None' doesn't appear.

9th May 2023, 10:29 AM
Khalid Kotte
Khalid Kotte - avatar
8 Answers
+ 3
Your function already prints “Solo” and “Learn” etc., but you are printing also the value of function Sololearn(n). This function doesn’t return a value, so its value is None, and that’s why your code prints None. Fix: https://code.sololearn.com/cgfE3JlxcswV/?ref=app
9th May 2023, 11:12 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 8
If you don't return any value in method but print that method then you get None
9th May 2023, 10:30 AM
A͢J
A͢J - avatar
+ 4
Upload your code so we can see it https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
9th May 2023, 10:50 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 3
Ugulberto Sanchez thank you
9th May 2023, 11:14 AM
Khalid Kotte
Khalid Kotte - avatar
+ 2
AJ. What should i do to solve the problem.
9th May 2023, 10:32 AM
Khalid Kotte
Khalid Kotte - avatar
+ 2
Ok. Ugulberto Sanchez
9th May 2023, 11:00 AM
Khalid Kotte
Khalid Kotte - avatar
+ 2
Your welcome. Happy learning!
9th May 2023, 11:14 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
0
Ok there it is, i have post it.
9th May 2023, 11:07 AM
Khalid Kotte
Khalid Kotte - avatar