Python/error debug

SyntaxError: expected an indented block

kimble2 2024. 8. 4. 15:33
반응형

Incorrect Indentation

Problematic Code:

def example():
print("Hello, World!")

 

Error Message:

SyntaxError: expected an indented block

 

Solution: You need to use indentation inside blocks such as functions or conditionals.

def example():
    print("Hello, World!")

 

 

반응형