+ 1
Why is this program not running on solo learn?
This program is not giving the desired output in sololearn.I tried it on my computer and it worked but not on sololearn. I just wanted to print:- ####### # # # # # # # # # # ####### https://code.sololearn.com/c6SfTy7AsNhC/?ref=app https://code.sololearn.com/c6SfTy7AsNhC/?ref=app
6 Answers
+ 2
it's not just sololearn. On line 5, change your i's to k's
+ 2
instead of
if i==2 or i==3 or i==4 or i==5 or i==6:
why not
if i!=1 and i!=7:
+ 1
If you're not busy with homework and stuff, you might try (re)installing the same Python version as SoloLearn's; in case yours is broken.
+ 1
thanks Rick Morty
that was my mistake i wrote i in place of k
+ 1
Rick Morty thanks for the logic i!=1 and i!=7
0
no problem. happens to me all the time. i becomes habit