What is Python Variable, Expression and Statement

What is variable

It is a place where we can store values. Instead of using the values directly, we can refer the variable name where the actual values are stored.

Example
> x = 2 === > here X is Variable
> name = 'John' === > here NAME is variable


What is Expression

It contains values, variables and operators.

Example
> 10
> x
> y = x + 10


What is Statement

It is a logical unit of code that can be executed at the Python interpreter. When we type statement at the command promt, it will execute the code in the statement then provides the results, as long as the code is clean. We can execute code that is in a file. In general these file contains scripts, these scripts are combination of statements to perform units of work.

Example
> print("Hello World")
Hello World


Python for BEGINNERS and DUMMIES

Variables, Expressions & Statements


List of 'Reserved Words' in Python


Boolean Expressions &
Comparison Operators

How to Install Python, IDE, UI
to Practice


Download and Install Python from
Python.org


Download and Install Anaconda to Use
SPIDER and Jupyter Notebook