Python Programming - I Installation, Input / Output
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
Download from www.python.org
Installation
Installation …
Installation …
Installation …
Installation …
Installation …
Python version
Interactive Mode in command prompt
Interactive Mode with IDLE
Output • print() >>> x = 30 >>> print (x) 30 >>> y = 12.23 >>> print (y) 12.23 >>> name = "neevee" >>> print (name) neevee >>> c = 'h' >>> print (c) h
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
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
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
Web : www.neeveetech.com E-Mail : nvhariharan@neeveetech.com Thank You.

Python programming for Beginners - I

Editor's Notes

  • #2 To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image.