Ask coding questions

← Back to all posts
Can someone explain why it says I did something wrong when I didn't?
Yeetboi275

A screenshot on what happened is below:

Voters
Yeetboi275
Comments
hotnewtop
InvisibleOne

It looks like you got a bit mixed up with tabs and spaces for indentation, make sure you either just use tabs, or just spaces for your indents because you can't mix them.

[deleted]

On line 5 you need a closing bracket. Python errors can often be traced to the preceding line of code.

Yeetboi275

@malvoliothegood Thanks! Didn't notice that

Yeetboi275

@malvoliothegood Hold on. Now it says something else is wrong.

LukeWright

you just need to unindent lines 12 and 13 by one @Yeetboi275