Variables in Python

Variable creation in Python is very much similar to the other programming languages. However, there are few notable differences. Variables are created only when it is assigned with a value. There is no concept of declaration. Variables type are determined only when it is assigned with a value. Type is optional while creating variables.  TypesContinue reading “Variables in Python”

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