Python Variables & User Input

Python Variables & User Input

There are many python detail tutorials available all over the internet. The purpose of these tutorial is to quickly go thru the basic variables available and user inputs in Python. Always remember that python is case sensitive language, therefore variable names num1, Num1 & NUM1 will be treated different variables.


Variables in Python: In python, users don't have to specifically declare variables before assigning values to it. Variable name can only start with either an alphabet or an underscore(_). Variables can be of 2 type with respect to Functions:

Datatypes in Python: In python, users don't have to specifically declare types of the variable before assigning values to it.


User Input in Python: Python supports taking input from users and there are 2 function to use this feature, raw_input(deprecated) & input.

Data Structures in Python: Primarily there are 4 types of data structures in python. Some of characteristics of all the data structures are listed below:


Deleting a variable: Existing variables can be deleted in Python using 'del' command.