I cant write a single thing in my pygame repl!

Problem description:
It always shows an Indentation error (I know what it means) and I can’t fix it and I always have to delete the piece of code that show the error =(
Expected behavior:

Actual behavior:

Steps to reproduce:

Bug appears at this link:


Hey @A395382-leolex, welcome to the community!

You may have entered in too many spaces/tabs on that line of code. Align it with the rest of the code and see if that fixes the issue.

If that doesn’t work, remove all the tabs and spaces and re-enter the tabs and spaces.

If this helped you, please mark this as solution so that we can close this topic off. Thanks!


Assuming you’re using the default indent settings: CtrlH replace \t with 2 spaces, so you aren’t mixing tabs and spaces.


its not that one-
its https://replit.com/@A395382-leolex/Battle-Your-Friends

It should work just the same.

1 Like

I’ve done that a lot.

so is there any issue now? It seems to work for me

I changed the code now but it’s still very hard to code