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
They are sequence of Unicode characters and can be used with single or double quotes to represent string and multi-line type of strings can be denoted by “OR”.
s = "This is a string"
print(s) # will print the string no need to define
List [ ] can be used with string and it is immutable can be changed.
Slicing String
It means we can concatenate from any character from the string starting with 0 index. For example in hello, h is started with index 0, e is index 1, l is index 2, l is index 3 and o is index 4.
Write the below code and see the output :
s = 'Hello world!'
print(s[4]) # o is index 4 will print o
print(s[6:11]) # will print 'world' as index 6 is started with w and 11 is d
Dictionaries
They are unordered collection pairs of key-value and used to huge amount of data.
In python dictionaries are defined with {} with each item being is part of key value.
Don't miss out!