+ 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

19th Aug 2018, 1:58 PM
Anvesh Mishra
Anvesh Mishra - avatar
6 Answers
+ 2
it's not just sololearn. On line 5, change your i's to k's
19th Aug 2018, 3:28 PM
LordHill
LordHill - avatar
+ 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:
19th Aug 2018, 2:38 PM
LordHill
LordHill - avatar
+ 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.
19th Aug 2018, 4:22 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
thanks Rick Morty that was my mistake i wrote i in place of k
19th Aug 2018, 4:33 PM
Anvesh Mishra
Anvesh Mishra - avatar
+ 1
Rick Morty thanks for the logic i!=1 and i!=7
20th Aug 2018, 9:18 AM
Anvesh Mishra
Anvesh Mishra - avatar
0
no problem. happens to me all the time. i becomes habit
19th Aug 2018, 5:33 PM
LordHill
LordHill - avatar