0 votes
in Python Flask by
How would you define a block in Python?

1 Answer

0 votes
by
For any kind of statements, we possibly need to define a block of code under them. However, Python does not support curly braces. This means we must end such statements with colons and then indent the blocks under those with the same amount.

>>> if 3>1:

print("Hello")

print("Goodbye")

Hello

Goodbye
...