ubsuny / 23-Homework6G1

MIT License
2 stars 7 forks source link

Unexplainable indent error? #87

Closed WildJimmy closed 11 months ago

WildJimmy commented 11 months ago

While looking at the root finding algorithms to see if they'll play nice with tanh, I started getting this error

"runcell(0, 'C:/Users/gotta/Documents/calculus/untitled0.py') File "C:\Users\gotta\Documents\calculus\calculus.py", line 94 iterations.append([x, f0]) ^ IndentationError: unindent does not match any outer indentation level"

But my code in that file looks like this

image I have no idea what could be causing this, and I've restarted the kernel and everything to make sure it has been imported as in the image above. Any ideas? If not no worries

WildJimmy commented 11 months ago

Also ignore the print("wormy") statement at the top there, that was just there for some testing purposes

JustinJaniszewski commented 11 months ago

hmm, have your tried removing all indents (in that area) and then using TAB to put them back. Somtimes theres like a mixture of spaces where the program has a hardtime for some reason.

WildJimmy commented 11 months ago

Yeah, I just restarted the kernal again and it works, I have no idea why....

JustinJaniszewski commented 11 months ago

Glad to hear it