Ask coding questions
please check this out
File "main.py", line 65
IndentationError: unindent does not match any outer indentation level
i don't know why ..
pressctrl + atabshift + tab
hi bro thanks for your answer i used it and the program starts working but what does this (ctrl+A)+tab+(shift+tab) does to the program that the program automatically gets correct....please do care for answering this question @CodingCactus
@ROCKINGRAYQUAZA it just highlights everything, then tabs averything, then un-tabs everything, basically resetting all the indents to tabs
bro do you have discord can i get your username? @CodingCactus
and this program is completed if would like to see please go to the share section =) thank tyou for giving your id @CodingCactus
i have sent a friend request i am new to discord so making some friends :) @CodingCactus
@ROCKINGRAYQUAZA go here https://repl.it/discord
@ROCKINGRAYQUAZA Hi,Make your code like this:-
a = input(">>>")
a = a.upper()
if a == "Y":
message2 = (
"You:[WAKING UP]where am I?\n\nHow did I get here inside this dark cave...\n\nWhere is my family,Where am I?\nUhh! I can hear someone.\nHELP!\n\nHELP!\nSOMEONE HELP ME\n\n"
+ red +
"[After a while searching the cave you find some wierd people wearing black cape..]"
+ bright_cyan +
"\n\nYou were curious about them so you went near them..\n\nBut you got shocked when you saw that you can neither touch anything and nor anyone can see you..\n\nYou couldn't understand what is going on..\n\n"
+ red +
"[Then you heard the weird people telling something to each other..]" +
"\n\nGRUNT1: This will not be an easy task to take the 'DARK ENERGY' out of this rock, but if we can then we will soon become the slayers of this world..\n\nGRUNT2: [Laughing] Yes you are absolutly correct ..Oh! get back to work fast the boss is coming.\n\n"
+ red +
"[Slowly you turn around and see a tall man wearing the same black cape and his face hidden..]\n\n[The person comes closer and start asking and few questions from the grunts..]"
+ bright_magenta +
"\n\nAnd without any futher ado the boss chanted some spells and kept a peice of rock near the large rock,and after some time..\n\nThe whole cave starts shaking and cave gets much more darker than before and a large dark figure stands in front of you..\n\nYou were horrified so were the weird team members and a tried to escape but you don't know where the exit is..\n\nAt last somehow you found the exit and came out of the cave..."
The error is because:- You need to make your mind, you indent either with tabs, either with spaces, but you don't mix.Thanks!
Hope this helps
Please mark my answer if this helps
but why have you given so much space between brackets and [email protected]
if you answer this I will consider your answer :) @PattanAhmed
@ROCKINGRAYQUAZA It's normal if you copy-paste it in your code!Thanks!
@ROCKINGRAYQUAZA Yep!.I answered...Thanks
Another way to do it (much easier and faster), is to do a search because the error is that the code you copied contained a tab and not a space:
oh hey look there are more errors actually
Click the triangle, and then inside the second input, type in (2 spaces)
basically, on line 47, press shift+tab then tab again.
ok wrong indentation