You need to indent statements that are intended to be in if-else
blocks:
i = 21
j = 23
print (i)
if i > j:
print('greater')
else:
print('lesser')
solved What does the error ‘IndentationError: expected an indented block in python’ mean? [closed]