1
Guys, I was wondering why the number 2 is not the first to be printed in this script, I’m not getting the logic.
altura = 5
linha = 1
while linha <= altura:
print ('1', end = '')
coluna = 2
while coluna < altura:
if linha == 1 or linha == altura:
print ('2')
else:
print(end = '')
coluna = coluna + 1
print ('3')
linha = linha + 1
Knows the table test?
– Woss
no friend, study by account
– Leandro Sargi
Read on and try to apply it. It will be easier to understand what the code does;
– Woss