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 installation in windows we have to type the IDLE.
What is IDLE ?
- IDLE- (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.
EXAPMPLE PROGRAM:
5+10
output: 15
25/10
output:2.5
*Advantage *
- In python we need not to declare data type like other programming Language. Eample:
name="keerthana"
print("Welcome", name, "!") //comma seperation makes space btw words
output:
Welcome keerthana !
name="keerthana"
print("Welcome"+name+"!") // plus operator here concatinates.
output:
Welcomekeerthana!
name ---> reference variable/identifier
print----> Function (action)
= ----> Assignment Operator .it assigns the value to an 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. as we discussed above.
Top comments (0)