Features of python
1. Simple and easy to learn:
- When we read python program, we can feel like reading English statements.
- Simple syntaxes.
- Very less number of lines as compared with other languages.
- More readability and simplicity.
- We can reduce development cost of the project.
2. Freeware and Open Source:
- We can use python without any license and it's freeware.
- no need to pay single paisa for using software.
3. High Level Programming Language:
- It is programmer friendly language.
- Being a programmer we are not required to concentrate low level activities like memory management and security etc.
4. Dynamically Typed:
- Data type is does not matter. whenever we are assigning the value, based on value type will be allocate automatically.
5. Interpreted:
- Being a programmer not required to compile python program. internally python interpreter will take care that compilation.
- An interpreter is a program that reads and execute code line by line.
Identifiers:
Name of identifiers can be class name or Function name or Module name or Variable name.
here my_string is a identifier.
After reading about Identifiers what's in our mind is there any rules to define variables or identifiers in python. answer is yes! python follows rules they are followings.
- Alphabet symbols it may be UPPER CASE or lower case.
- Identifier should not start with Digits.
- Identifiers are case sensitive.
>>> a = 10>>> A = 20>>> print(a)10>>> print(A)20
4. We can not use reserved word as identifiers.
Then question arise is how many keyword and what are they in python?
here is answer
Steps:
All reserved words in python contains only alphabet symbol.
Except the following - True, False and None.
5.There is no length limits for identifiers
DATA TYPES IN PYTHON
Fundamental Data Types:
Fundamental data types are immutable. once create an object we can not perform any changes in that object.
- int
- float
- complex
- bool
- str
Collection Data Types:
- bytes
- bytesarray
- range
- list
- tuple
- set
- frozonset
- dict
- None
Brief explanations about Data type in next blog...….


No comments:
Post a Comment