Skip to content
← Back to Community
Why is my code being cut into pieces?
Profile icon
TortillaCook

On my project, Tortilla, whenever you attempt to play, it cuts the words. You can view my code and see what should be happening. Anybody know what to do?

Voters
Profile icon
MuffinsTheCat
Profile icon
TortillaCook
Comments
hotnewtop
Profile icon
MuffinsTheCat

I'm pretty certain this isn't a problem with your code but with replit itself. For some reason, if you try to print a lot of text at once it does this. Until they fix this bug, try printing smaller bits of text at a time

Profile icon
TortillaCook

@MuffinsTheCat Thanks...

Profile icon
Coder100

Ok, its a replit bug.

Use my super awesome function that only requires you to change how you type in input(). Don't need to use any bad hacks

def input_(str=''): print(str, end='') return input()

put this code on the TOP of every file that uses the function.

Profile icon
RYANTADIPARTHI

try resizing your console, or using \n in parts of your code.

Profile icon
TortillaCook

@RYANTADIPARTHI I did that.

Profile icon
RYANTADIPARTHI

@TortillaCook hmm, did you resize your console?

Profile icon
FishballNooodle

image
As Far as I can see it doesn't.
Try opening in Shell Instead by doing python main.py in the shell terminal instead of console

Profile icon
TortillaCook

@FishballNooodle Alright, I'll try it.

Profile icon
TortillaCook

@FishballNooodle Hey, it worked! Thanks, FishballNooodle!

Profile icon
FishballNooodle

@TortillaCook
Great!!!
You can mark my comment as the answer.

Profile icon
oxygenazeem

@FishballNooodle

Thanks!!! You really helped!! You don't know how much this means to me.