Why do this code outputs "No output"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why do this code outputs "No output"?

I think that there is a difference between printing out spaces and no output, or do I misunderstand something? https://code.sololearn.com/cfxWRdp0PmPN/?ref=app

17th May 2018, 3:12 PM
李立威
6 Answers
+ 2
@Rajeeb I know your point, but i expect the output to be : ' ' rather than : No output
17th May 2018, 3:23 PM
李立威
+ 5
Seems like there's no difference between just printing whitespace and "No Output" on Sololearn :|
17th May 2018, 3:29 PM
Rahul George
Rahul George - avatar
+ 4
李立威 - I don't know for sure. Maybe you could try sending feedback to info@sololearn.com
17th May 2018, 3:34 PM
Rahul George
Rahul George - avatar
+ 2
I'd imagine it's because Python ignores whitespace. It should perserve it since it's inside of the parentheses, but Pythons a weird language so who knows...
18th May 2018, 5:13 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
write something inside paranthesis
17th May 2018, 3:20 PM
Rajeeb
0
@Rahul George That may make sense. Is this a bug or something?
17th May 2018, 3:32 PM
李立威