+ 1
Why my code won't work as matrix
I write this code on my gnu/linux with python 2.7. https://code.sololearn.com/cC11z1dP8ZIR/?ref=app The problem is that: on my pc this make a matrix 8x8 with a diagonal of 'X', but in this app write only a colums. Is this a problem of app or is this a problem of python version?
5 odpowiedzi
+ 3
It works in Playground:
https://code.sololearn.com/c01zRrqjMrR8
+ 7
I've only used this version so can't tell you that. I'm running the same version on my laptop.
+ 3
SoloLearn's Python requires () on prints and ,end="" to stop newlines after outputing so:
print (On, end="")
else:
print (Off, end="")
print ()
+ 1
Thanks very much.
This SoloLearn Python have other syntaxes difference?
0
This metod don't work if i don't define "end"