Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
12

How to indent this code?!

madmonster
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!

4 years ago

Voters

Comments

TopNew
3
ArchieMaclean
ArchieMaclean

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

4 years ago
1
mrfibo123
mrfibo123

@ArchieMaclean
aight then

4 years ago
1
mrfibo123
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

4 years ago
Load more