Skip to content
Sign upLog in
← Back to Community

How to indent this code?!

Profile icon
madmonster

This program is going to be the first thing I'm writing for the game jam. Even though this is like a twelve-liner, I honestly can't tell you how much errors in the code. Those mistakes, -I meant typos are composed mainly on indenting errors. Help please!

Voters
Profile icon
KatharineFernan
Profile icon
Angie-LorenaLo4
Profile icon
FatimaJaparova1
Profile icon
DavidBrocardo
Profile icon
RBermingham
Profile icon
ssjrob
Profile icon
AnamulHaque1
Profile icon
shreyanair1510
Profile icon
RyanSuazon
Profile icon
henrysosa
Comments
hotnewtop
Profile icon
ArchieMaclean

Here is a link to the fixed repl.
Please upvote if this helps :)

Profile icon
mrfibo123

@ArchieMaclean
aight then

Profile icon
mrfibo123

You have a print statement that isn't indented on line 13 and if you want to indent the 'if' statement then you should indent print or not indent "if". I assume you want to indent it all instead though because its supposed to loop. You also need to flip the "an" and "bet" in the if statement. I've fixed it in a fork of the original code here:https://repl.it/@mrfibo123/Endless-heads-or-tails-1