all stats

Luna's stats

guessed the most

namecorrect guessesgames togetherratio

were guessed the most by

namecorrect guessesgames togetherratio

entries

round #103

submitted at
0 likes

guesses
comments 0

post a comment


wrap.py ASCII text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
input = "According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible."

input = input.replace("\n"," ").split()
output = ""
while input != []:
  if len(input[0]) > 80:
    line = input[0][:79] + "-"
    input[0] = input[0][79:]
  else:
    line = ""
    line += input[0] + " "
    while len(line) <= 80 and len(input) > 1:
      del input[0]
      line += input[0] + " "
    line += input[0] + " "
    del input[0]
    line = " ".join(line.split()[::-1][1:][::-1])
  output += line + "\n"
output = output.strip("\n")
print(output)