i
Python functionality and evolution
Installing Python (windows and Ubuntu)
IDLE (Integrated Development and Learning Environment)
Write the first python program and execute it
Keywords in Python
Identifiers in Python
Indentation in Python
Comments in Python
Multi-line Comments in Python
Getting user input
Python Function
Calling a function
Arguments in Function
Scope of Variables
Modules in Python
The PYTHON PATH-Variable
Python File Open
Python File Opening Modes
The file-Object-Attributes
Python File Close() Method
Python File Read/Write
Python File Position
Renaming and Deleting Files in Python
Python Directory Methods
File/Directory Methods
Exceptions in Python
The try-finally Clause
The argument of Exception
Raising Exceptions
Python Built-in Exceptions
Python OOPs Concepts
Python Classes/Objects
Creating Instance Objects
Accessing Attributes
Built-In Class Attributes
Garbage Collection
Python Inheritance
Overriding Methods
Method overriding
Data Hiding
Regular Expression
The match function
The search function
Match Object Methods & Description
Matching or Searching
Search or Replace
Regular Expression Modifiers / Option Flags
Grouping with Parentheses
Python Socket Programming
Python Socket Server
Python Socket Client
Send Data Between Clients
Python Socket or Server
Python Socket Clients
Points to ponder
It allows to execute a statement or groups of statement multiple times.
In Python following type of loops to handle looping:
1. while loop
2. for loop
3. nested loop
1. while loop:
It is a group of statements which repeats while given condition is TRUE and tests the condition before executing loop.
Syntex:
while Condition:
Statements
exit condition
For example: Please write below code in IDLE and run it.
Output:
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 10
2. for loop:
It is execution of set of statements multiple times and manage the loop.
Syntex:
for Condition:
Statements
For example:
Output: 1 2 3 4 # why not 5 think it !!!! you are smart
3. nested loop:
It can be used one or more loop inside while or for loop.For example:
Output: 1 1 1 1 22 333 4
Don't miss out!