Ask coding questions

← Back to all posts
Words out of order
MattHartman1 (0)

When I run my code, the output in the console doesn't match what I typed in the editor. The words appear jumbled and out of order. I tried turning off the ad blocker and tested it on trinket.io where it works.

Comments
hotnewtop
Coder100 (18904)

yes, that is because the input function on replit is a bit bugged. Try this function instead:

def input_better(text = ''):
  print(text, end = '', flush = True)
  return input('')
[deleted]

Looks fine to me, just make sure your screen is big enough