PYTHON INSTALLATION
Python current version is 3.14.6
Python is a Forward compatibility
In Linux default there is a python we can access the python through terminal
In window we have to download the python.
python.org--->python--->download.
After download and installation in windows we have to type the IDLE.
What is IDLE ?
IDLE stands for Integrated Development and Learning Environment.
It will give the result immediately when you begin the code
The shell is a interactive interpreter
It provide the output for each line of the code immediately.
PYTHON2 VS PYTHON3
Python 2 and 3 are two versions of the Python programming language, with Python 3 being the latest and containing new features, syntax and improved performance.
Python 2 has reached end-of-life on January 1st,2020 and is no longer updated, while Python 3 is actively maintained. It is recommended to use Python 3 for new projects.
EXAPMPLE PROGRAM:
5+10
output: 15
25/10
output:2.5
Advantage of python is we need not to declare data type like other programming Language.
name="shobi"
print("Welcome", name, "!")
output:
Welcome shobi !
name="shobi"
print("Welcome"+name+"!")
output:
Welcomeshobi!
Both are the same program but the difference is in 1st program i used (,) in a print. 2nd program i used(+) in a print
if i give a (,) means it give the space
if i give a(+) means it doesnot give the space it will concatenate .
name ---> reference variable/identifier
print----> Function (action)
= ----> Assignment Operator it will assign the right side value to the left side reference variable.
FUNCTION OVERLOADING:
- Same Function name but different type of arguments
For Eg:
The above program has the same function name print but different type of arguments like in 1st program we use a (,) in 2nd program we use a (+).

Top comments (0)