Python Tut-1 ....Identifiers , Reserves Words , Lines and identation and much more..

in #swas8 years ago

In the last post, i had already discussed about the modes of interaction in the Python Programming Language.

So , we will proceed further to the next topic i.e. Identifiers and many more to be discussed.

****Identifiers :-

First of all we will learn that the Python is a Case Sensitive Programming Language.
So, it means that the meaning of PAST and past will be different in python. Python will recognize the both words with different meanings.

Now, Identifiers are used in python to identify some functions, variables, class, module or other object.

An identifier can be starts with the letters i.e A to Z or a to z or numbers can be used as well with underscore (_). for e.g. _0 can be used as a identifier in Python.
If we will use double underscore __ it means it is private function and it cannot be shown as public.

images.jpg

Identifiers are to be used in a long run to debug the programms or to to do some change in the long coded program.

*****Reserve Words:-

In Python there are many reserve words i.e we can also call them Keywords.
There are many Python keywords such as

and del
global

as elif if

assert else import

break except

These keywords are used to define loops in programs or to define some functions in programs.
These Keywords cannot be used for naming purpose like we cannot use this keywords to save our program i.e. for title of the program.
If we will try to do, it will try to assign some different meaning to that keyword.

images (1).jpg

****Lines and Identation :-

Python uses colour coding technique to represent the program. So , that the user can easily identify the different functions and keywords.
Different types of colours are used to write different functions. As we can get it to Know better in the given following image below.

images (2).jpg

Here in the following image the different colours which are to be used in the coding are well defined.
There are serial no. is given aside. So that we can easily sort out the number of lines used to write a program

images (1).png

Different functions should be used on different lines to avoid mess up and creation of errors in programs.

Same functions if repeated should be written exactly below it. Otherwise it will create syntax error or it will simply pop it up (Function not defined)

So, these are the some basics of Python Programming Language.

Do Follow Up and Comments(Suggestions are welcome).

Coin Marketplace

STEEM 0.12
TRX 0.34
JST 0.032
BTC 111882.60
ETH 4121.00
USDT 1.00
SBD 0.76