Ask coding questions

← Back to all posts
Why is it throwing an error on me?
ROCKINGRAYQUAZA

please check this out

i don't know why ..

Answered by CodingCactus [earned 5 cycles]
View Answer
Voters
ROCKINGRAYQUAZA
Comments
hotnewtop
CodingCactus

press
ctrl + a
tab
shift + tab

ROCKINGRAYQUAZA

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

CodingCactus

@ROCKINGRAYQUAZA it just highlights everything, then tabs averything, then un-tabs everything, basically resetting all the indents to tabs

ROCKINGRAYQUAZA

bro do you have discord can i get your username? @CodingCactus

CodingCactus

@ROCKINGRAYQUAZA CodingCactus#6777

ROCKINGRAYQUAZA

and this program is completed if would like to see please go to the share section =) thank tyou for giving your id @CodingCactus

ROCKINGRAYQUAZA

i have sent a friend request i am new to discord so making some friends :) @CodingCactus

CodingCactus
ROCKINGRAYQUAZA
PattanAhmed

@ROCKINGRAYQUAZA Hi,
Make your code like this:-

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

ROCKINGRAYQUAZA

but why have you given so much space between brackets and [email protected]

ROCKINGRAYQUAZA

if you answer this I will consider your answer :) @PattanAhmed

PattanAhmed

@ROCKINGRAYQUAZA It's normal if you copy-paste it in your code!
Thanks!

PattanAhmed

@ROCKINGRAYQUAZA Yep!.
I answered...
Thanks

Coder100

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)

Click that^^

Coder100

basically, on line 47, press shift+tab then tab again.

Coder100

ok wrong indentation