I’ve gotten this error in the following script (if copy cell will works):
This picture is reduce to fit a ‘Snippet’, since it doesn’t scroll while copying!
The following error occurs and I’m at sea to fix it.
File :22
print(f"1st if indx is ‘m’, then Index is {indx}!")
^
IndentationError: unindent does not match any outer indentation level
Is this the suspected reporting page for features/bugs?
It turns out that as you build a script, the tabs/spaces aren’t consistent! Once the script is finished, if you encounter “inconsistent use of tabs and spaces”. Then, reset all lines to home (left margin), re-indent as is needed!
I first observed a tab+space coding a function. I’d create the definition, place the ()'s, add the colon (:). Next press the enter key and the cursor is one (1) space in from where the indent occurs. I’ve set ‘tab’ to 4 spaces, doesn’t happen as expected! So, for the last 2 wks. on a new Lenovo LOQ! I’m getting “inconsistent use of tabs & spaces”. Of course, I asked for help in Udemy, they saw the indents were all out of wack. But they attribute it to how the text was copied into the Q&A text box. It’s not…