2. Variable creation in Python

There is no special keyword, command or syntax to create variables in Python. The variable is created the moment you type some name and assign a value to it.

To create a variable we use an assignment operator ( = ) to  assign a value to it.

Example 1: x=3, var=10

In the above example, the variable names are x and var. the symbol = is used to assign a value to a variable as shown in the above example.

Creating String Variables:

To create a string variable we need to place the value inside in quotes (either single or double quotes)

Example:  name="Dr.B.R.A.O.U", person='KCR'

In the above example, name and person are two different variables with two different string values Dr.B.R.A.O.U & KCR and they have quoted using double and single quotes.