Introduction of python | Basic introduction of python |
Python Introduction
In this post give you information about python, introduction of python and basic knowledge in a simple way .
Introduction of Python |
1. Python is a powerful multi-propose programming language created by Guide van Rossum it has simple ,easy-to -use syntax ,making it the perfect language for someone trying to learn computer programming for the fist time.
2. python is general-purpose language it has wide range of application for web development .
the syntax of language is clean and length of code relatively short .
3. Python is easy to learn yet powerful and versatile scripting language which makes it attractive for application development .
4. Python support multiple programming pattern ,including object oriented, imperative and functional or procedural programming styles .
- History of Python:-
Python language created by Guido Van Rossum.
The design in the late 1980 & was first released in Feb. 1991.
Python Is an interpreted programming language .python source code is compiled to bytecode as a .pyc file and this byte code can be interpreted.
There are two modes for using the interpreter .
1) Interactive Mode-
In that Mode without passing python script file to the interpreter directly execute code to python prompt. and this is very easy techniques not need to write header file or any command just like c language.
- Basics of python :-
Python Is an interpreted programming language .python source code is compiled to bytecode as a .pyc file and this byte code can be interpreted.
There are two modes for using the interpreter .
1) Interactive Mode-
In that Mode without passing python script file to the interpreter directly execute code to python prompt. and this is very easy techniques not need to write header file or any command just like c language.
Example- >>> 2+6
output- 8
2)Script Mode-
Alternatively programmers can store python script source code in a file with .py extension & use the interpreter to execute the contents of a file.
To execute the script by the interpreter you have to tell interpreter the name of file.
e.g script name filename .py & you're working on linux to run the script you have to type.
Python filename.py
- Reasons To Choose python Language:
Simple elegant syntax –
Programs in python
easier to understand and write python
code very easily .
For Example –
a=2
b=3
Sum=a+b
print(sum)
this is very simplest way programs
add two numbers and print it .
Not overly strict –
In python you don’t need to define the
type of a variable and not necessary to add semicolon at the end of the statement.
Expressiveness of Language –
Python allows you to write program
having greater functionality
with fewer line of code
Post a Comment