This presents the installation procedure of python installer and also it provides the information about the basic input & output handling. This also presents the different arithmetic operators and relational operators.
2. Overview
• Object Oriented Programming Language
• Easy-to-use programming language
• Interactive mode makes easy to test short code snippers
• IDLE - Bundled development environment of Python
• Runs over any where, includes windows, linux, MacOS and Unix.
• Free software and available for download from www.python.org
• Lets you work quickly and integrate system more effectively
• Easy to learn and use the python, lets get started
13. Output
• print()
>>> x = 30
>>> print (x)
30
>>> y = 12.23
>>> print (y)
12.23
>>> name = "neevee"
>>> print (name)
neevee
>>> c = 'h'
>>> print (c)
h
14. Input
• input()
>>> name = input()
hariharan
>>> print (name)
hariharan
>>> val = input()
234
>>> print (val)
234
>>> h = input()
t
>>> print (h)
t
>>> flt = input()
12.231232
>>> print (flt)
12.231232
15. Arithmetic Operators
Operators Description
+ Adds the two operands
- Subtract the second operand from the first
* Multiplies the operands
/ Divides the first operand by second operand
% Divides first operand by second operand & returns remainder
16. Relational Operators
Operators Description
== Returns true, if operands are equal. Else returns false
!= Returns true, if both operands are not equal, else false
> Returns true, if first operand is greater, else false
< Returns true, if first operand is lesser, else false
>= Returns true, if first operand is greater or equal, else false
<= Returns true, if first operand is lesser or equal, else false