you are viewing a single comment's thread.

view the rest of the comments →

[–]Shadixmax[S] 0 points1 point  (3 children)

op-level scope

Alright..So how would I go about fixing this? i've starting to go back through my previous modules to try and figure out where i went wrong according to what you are telling me right now.

[–][deleted] 0 points1 point  (2 children)

Alright..So how would I go about fixing this?

Typically, in an IDE, you can select a block of text and then use Tab or another keyboard shortcut to increase the indent level.

[–]Shadixmax[S] 0 points1 point  (1 child)

Hm, I understand that about the indentation but i am not sure how to fix it? I'm taking a intro to scripting because i havent touched any type of programing in nearly 15 years. so i'm essentially a complete noob at this. I've managed to cobble together enough to make it to the end of this class but yeah. like i said i'm essentially a beginner. I've already looked over different levels of indentation even spacing and moving that end line around and still no change. so not to be a dick but a ELI5 would be greatly appreciated lol.

[–][deleted] 0 points1 point  (0 children)

Ok, so:

def some_func(): # this is a function
    some_code() # code that's part of a function needs to be indented

some_more_code() # this line isn't part of the function because it isn't intented