+ 3
An IDLE do some things automatically for you, but you need to correct, because you know better than him what you want to produce ;) Some times, automatic indentation doesn't fit as expected... So you have to follow the way indicated by @Kevin Kiprotich by verifying your identation : count spaces, and verif if you didn't mix tabs and spaces as the error message suggests...
7th Jan 2017, 2:52 AM
visph
visph - avatar
0
make sure your use of tabs is consistent. that is, number of spaces are equal. to be safe, use tab key
6th Jan 2017, 9:55 PM
Code Freak
Code Freak - avatar
- 1
W=0x11 A=0x1E S=0x1F D=0x20 Traceback (most recent call last): File "main.py", line 5, in <module> from controls import xAxis, yAxis,Brake,j,reCentre File "C:\Users\Vicky Kumar\Desktop\Program Output\Driving-using-motion-recogniton\Just Cause 4\controls.py", line 73 PressKey(0x1E) ^ TabError: inconsistent use of tabs and spaces in indentation When I run this code on Jupyter Notebook then no such error, but when ... I am getting this ERROR, running code on Notepad++ !!!
27th Jul 2020, 4:49 PM
Vicky kumar
Vicky kumar - avatar