Why do i get 'indentationerror: expected an indented block' in python?

Example:

if True:
print('Hello, World!')
Solution:

Python uses indentation to determine block structures. Make sure to indent your code properly inside conditional statements, loops, or functions.


if True:
    print('Hello, World!')

Beginner's Guide to Python