Indentation in Python

Indentation plays a major role in Python. Let’s see with example. Here is a sample code of if block without space: This says to print “Hello from Python” whenever it executes and both the code statements are aligned to each other. The Python interpreter will not know that the print statement should be executed wheneverContinue reading “Indentation in Python”

Design a site like this with WordPress.com
Get started