+ 1

What's the functionality of (end,sp) in print function

why the output of this code(0n9) is like that shouldn't it be(9) only https://code.sololearn.com/cSlcDXNzIdhp/?ref=app

30th Aug 2018, 5:42 PM
moamen
moamen - avatar
2 Réponses
+ 2
the zero is printed because the == statement is False: int(False) = 0 next is 'n' and finally the sum is printed because this is not indented and not in the if loop. also, this could help https://www.sololearn.com/discuss/1411735/?ref=app
30th Aug 2018, 6:16 PM
davy hermans
davy hermans - avatar
0
Thanks a lot I now understand it
30th Aug 2018, 6:42 PM
moamen
moamen - avatar