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

Related questions

0 votes
asked May 12, 2023 in Python Flask by SakshiSharma
0 votes
asked May 10, 2023 in Python Flask by john ganales
...