What is python?
·
Python
is a high level language like other high level language such as
Java,C,C++,PHP,Ruby and Perl.
·
Python
is designed by Guido van Rossum in 1991.
·
It
supports multiple programming paradigms,including object oriented and
functional programming.
·
Python
is used as a server to create web applications.
·
Python
has a simple syntax similar to English language and python is used for software
development.
What can
python do?
·
Python
can be used to handle big data and perform complex mathematics.
·
It
is used for rapid prototyping for software development.
·
Python
can connect to database systems and it can also read and modify files.
Why we use
python?
·
Python
works on different platforms(windows,linux,mac..etc).
·
Python
has simple syntax that allows developers to write programs with fewer lines
than other programming languages.
·
Compare
to other programming languages python as simple syntax that can be understood
easily.
·
And
it is very easy to implement .
Features of
python:
- 1. Easy to understand
- 2. Less development time
- 3. Free and open source
- 4. Portable
- 5. High level language
Installation of python:
Python can
be easily installed from python.org.when you click on download button python
can be easily installed ,after that complete setup by executing the file.
We can
practice programmes in pycharm platform or visual studio(vs)code also.
Is python case sensitive language?
Yes,python
is a case sensitive language ,because it differentiates the lower case and
upper case identifiers.
Advantages of python:
1. Python
is very flexible and case sensitive language.
2. Python
is free and open source language.
3. Python
runs on various platform like Mac,Window,Linux..etc.
4. Python
is a object oriented
language.
Simple program:
1. Print(“Hello world”)
#here print is a function
Output:
Hello world
2. 2. Print(“Avniet college”)
Output:
Avniet college
Comments in Python :
l Single line comment:
Ex:
#This is a comment
print("Hello, World!")
l Multi line comment:
Ex:
"""
This is a comment
written in
more than just one line
"""
print("Hello, World!")
Python modules:
A module is a file containing code written by
somebody else which can be imported and used in our programs.
->there are two types of
modules;
1) Built in modules:these modules are already
installed in python.
2)
External modules
:these we need to install using pip.
0 Comments
Got questions? Feel free to ask!