I did everything right on a a video or a website but I keep on getting this:
python3 main.py
File "/home/runner/Kairi/main.py", line 68
encouragements = []
^
IndentationError: expected an indented block after 'if' statement on line 67
exit status 1
It looks like your if statements have wonky indentation.
I think you can highlight lines 63 through 67 of your code and hold the Shift key and press Tab. This should decrease the indentation by one, and fix the error.
It depends on what exactly youâre trying to do though. This would fix the error, but might not result in your exact wanted functionality.
Oh, I think you pressed only Tab (which indents it forward). Select the same text, hold down the Shift key, and while holding it still, press the Tab key twice.
No, youâre not. Everyone is here to help other people
Ok. Let me try it. Now its saying Line 62 is wrong
python3 main.py
File "/home/runner/Kairi/main.py", line 63
encouraging_message = msg.split("$new ",1)[1]
^
IndentationError: expected an indented block after 'if' statement on line 62
python3 main.py
File "/home/runner/Kairi/main.py", line 62
if msg.startswith("$new"):
^
IndentationError: unindent does not match any outer indentation level
exit status 1
I had to do the steps again but I just did first one you had me do and then I clicked run and now it says this:
python3 main.py
File "/home/runner/Kairi/main.py", line 81
if msg.startswith("$responding"):
^
IndentationError: unindent does not match any outer indentation level