How to remove the error "inconsistence use of tabs and spaces" ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to remove the error "inconsistence use of tabs and spaces" ?

2nd Aug 2018, 8:38 AM
Crystal!!!😎
Crystal!!!😎 - avatar
7 Answers
+ 5
i am using python 3.7 Ipang
2nd Aug 2018, 12:22 PM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 5
its ok😅!!...anyway thanks bcz whatever u told me is precious.😊Ipang
2nd Aug 2018, 2:13 PM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 5
thanks Calviղ 😊
2nd Aug 2018, 2:14 PM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 3
Are you using DreamWeaver? if so, select all the text in the editor, right click, and see if you can find a submenu that suggests to convert all spaces to tabs, or all tabs to spaces. Never mind this if you're using other editors : )
2nd Aug 2018, 8:57 AM
Ipang
2nd Aug 2018, 10:01 AM
Calviղ
Calviղ - avatar
+ 3
Crystal!! Add a tag called Python would help you get the correct replies from QnA. And delete other irrelevant tags.
2nd Aug 2018, 12:43 PM
Calviղ
Calviղ - avatar
+ 3
Crystal!! okay, well you didn't tag Python in question so I just went with a wild guess : ) I think there's a possibility that your code is indented with both spaces and tabs, I guess you know that in Python indentation means a lot to the interpreter, so it shows you that in order to ask you to be consistent with which character is used for code indentation. I'm sorry but I don't know how to check and convert spaces->tabs vice versa in other code editors, as adjacent spaces can mimic tabs, it is hard to tell which is what.
2nd Aug 2018, 12:49 PM
Ipang