fork(1) download
  1. largura = 8
  2. altura = 4
  3. rect = ''
  4. for i in range(altura):
  5. for j in range(largura):
  6. if(j == 0 or j == largura-1 or i == 0 or i == altura-1):
  7. rect += '#'
  8. continue
  9. rect += ' '
  10. rect += '\n'
  11. print(rect)
Success #stdin #stdout 0s 9992KB
stdin
Standard input is empty
stdout
########
#      #
#      #
########