Syntax
Python uses indentation to show which statements belong inside a block. Treat indentation as part of the program rather than decoration that only changes its appearance.
Understand the idea
A colon starts the suite after an if statement. The indented print belongs to that condition; the final print runs afterward regardless. Use four spaces per indentation level and keep your editor consistent. Mixing tabs and spaces can cause errors or obscure the intended structure.
Where to try it
Open this example with Try in playground. The code loads as editable text and does not run until you select Run. The first run downloads Python. Each run starts fresh; temporary files created by a script are not files on your PC.
A worked example
available = 3
if available > 0:
print("Booking is open")
print("Check complete")
Read the result
Both messages appear because 3 is greater than zero. With available set to 0, only Check complete appears.
Try one change
Move the final print into the block and compare its behaviour when available is zero.