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
2

penalty

tsana
tsana

Why doesn't this thing work?

3 years ago

Voters

Comments

TopNew
1
CoolJames1610
CoolJames1610

Bro ur indents are all messed up. Use TAB to indent or SPACEBAR but they all have to be consistent.

pc = input() if pc == 'a': print(a2) print(b2) print(c2) aha = 1 if rn == aha: print("Miss") else: print("Goal")

Python doesn't care how you indent only that they are all the same. In this example, I used an indent of ONE using the SPACEBAR. You can also do the same :)

Hope this helped :D

Please mark my answer if this helped!

3 years ago
2
tsana
tsana

@CoolJames1610
thanks

2 years ago
1
CodingCactus
CodingCactus

would you mind changing your pfp because you might cause an epileptic fit

3 years ago
1
finlay44111
finlay44111
File "main.py", line 52 if rn == aha: ^ IndentationError: unindent does not match any outer indentation level
3 years ago
1
tsana
tsana

@finlay44111
i know how do i fix it

3 years ago
1
finlay44111
finlay44111

@tsana
can you not read? there is an indentation error on line 52, by the looks of it you need to add another space since you only used 3, but for the first indent you used 4 spaces.

3 years ago
1
finlay44111
finlay44111

@tsana
on line 53 there are a total of 7 spaces, when you need to have 8 spaces.

3 years ago
1
finlay44111
finlay44111

@tsana
you gotta do that for all the lines in your code that only have 7 spaces

3 years ago
Load more