Python Tutorial, Download & Install Python, Introduction to Python, Python Programming Language Elements, and Python Object-Oriented Programming.
Python Programming Language Syllabus
1. Introduction to Python Language
2. Download & Install Python
3. Python Language Syntax
4. Python Keywords and Identifiers
5. Python Comments
6. Python Variables
7. Python Data Types
8. Python Operators
9. Python Control Flow – Decision Making
10. Python Control Flow – Looping
11. Python Control Flow – Branching
12. Python Numbers
13. Python Strings
14. Python Lists
15. Python Tuples
16. Python Sets
17. Python Dictionaries
18. Python Arrays
19. Python user-defined Functions
20. Python Built-in Functions
21. Python – Modules
22. Python User Input
23. Python IO – File Handling
24. Python Exceptions Handling
Python OOPs Concepts
25. Python Classes and Objects
26. Python Methods
27. Python Constructors
28. Python Inheritance
29. Python Polymorphism
30. Python Abstraction
31. Python Encapsulation
32. Regular Expressions
33. Database Access
34. Python Multithreading
35. Python Networking Programming
36. Python CGI (Common Gateway Interface) Programming
37. Python GUI Programming
Python Tutorial for Beginners
Introduction to Python Programming Language, What is Python?, Key features of Python Language, Implementation of Python, Applications of Python Programming, Python Development Environment Setup, and Drawbacks of Python Language.
Python is a free and open-source programming language, and you can get Python software from python.org.
Download and Install Python, download python interpreter, install python software, set python environment variable, lunch Python IDLE, write & run programs.
Python Language Syntax to write Programs, Modes of Programming in Python, Indentation in Python Programming, Python Identifies, Python Keywords, and Comments in Python.
Python keywords are also known as reserved words. Keywords are particular words that act as a key to a code. These are predefined words by Python, so they cannot be used as identifiers.
Identifiers in Python are symbolic names used for identification. They can be a class name, variable name, method name, function name, and more.
Comments can be used to explain Python code and to make the code more readable. Comments can be used to prevent execution when testing code.
Single-Line Comments in Python, Python Multi-Line Comments, and Python docstrings.
What is a Variable?, Rules for creating variables in Python, Creating Variables, Assigning a single value to multiple variables, Assigning different values to multiple variables, Get the Variable Type, Global and Local Variables in Python, Delete a Variable, and Variable type in Python.
In computer programming, the data type is an important concept. Variables can store data of different types, and different types can do different things.
1. What is a Data Type?
2. Python Built-in Data Types
3. Getting the Data Type
4. Setting the Data Type
5. Setting the Specific Data Type
Operators are used to performing Arithmetic, Comparison, and Logical Operations…
Important categories of operators in Python:
1. Arithmetic Operators
2. Comparison (Relational) Operators
3. Assignment Operators
4. Logical Operators
5. Identity Operators
6. Bitwise Operators
We have three types of Control Flow Statements in Python:
1. Conditional Statements
2. Loop Statements
3. Branching Statements
Python Conditional Statements, Decision making in Python programming, Python if statement, Python else statement, and Python elif statement.
Usage of Conditional/Decision Making Statements
1. Execute a block of Statements when the condition is true.
2. Execute a block of Statements when a compound condition is true.
3. Execute a block of Statements when the condition is true otherwise execute another block of Statements
4. Decide among several alternates(elif)
5. Execute a block of Statements when more than one condition is true (Nested if)
In general, statements are executed sequentially in Computer programming,
Programming languages provide various control structures that allow for more
complicated execution paths.
A loop statement allows us to execute a statement or group of statements multiple times.
Python programming language provides two loop structures,
1. while loop
2. for loop to handle loop requirements…
Branching statements in Python are used to change the normal flow of execution based on some condition.
Python provides three branching statements break, continue and return.
In Python pass also a branching statement, but it is a null statement.
Number data types store numeric values. They are immutable data types, which means that changing the value of a number data type results in a newly allocated object.
There are three numeric types in Python:
String Handling in Python, What is a String?, declaration of strings in Python, concatenating strings, and string comparison in Python.
The string is a sequence of characters written in single quotes or in double quotes or in three double quotes.
Important Operations on Strings:
1. Finding String length
2. Concatenating Strings
3. Print a String multiple times
4. Check whether the String has all numeric characters?
5. Check whether the String has all alphabetic characters?
Python Lists, Creating Lists, Accessing Values in Lists, Updating Lists, Delete List Elements, and Built-in List Functions and Methods.
The list is the most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets. The important thing about a list is that items in a list need not be of the same type.
Python has implicit support for Data Structures which enable you to store and access data. These structures are called List, Dictionary, Tuple, and Set.
A tuple is a collection that is ordered and unchangeable. In Python, tuples are written with round brackets.
Operations on Tuples:
1. Access Tuple Items
2. Range of Indexes
3. Change Tuple Values
4. Loop Through a Tuple
5. Check if Item Exists
6. Find Tuple Length
7. Add Items
8. Remove Items
9. Join Two Tuples
Set in Python is a data structure equivalent to sets in mathematics. It may consist of various elements; the order of elements in a set is undefined.
Python set is a collection that is unordered and unindexed. In Python, sets are written with curly brackets.
2. Access Items
3. Change Items
4. Add Items
5. Get the Length of a Set
6. Remove Item
7. Join Two Sets
A dictionary is a collection that is unordered, changeable, and indexed. In Python, dictionaries are written with curly brackets, and they have keys and values.
Python Data Structures – Dictionaries
1. Accessing Dictionary Items
2. Change a Values
3. Print a Dictionary
4. Check if a Key Exists
5. Find Dictionary Length
6. Adding Items to a Dictionary
7. Removing Items
8. Copy a Dictionary
9. Nested Dictionaries
10. The dict() Constructor
A module is a file consisting of Python code. It can define functions, classes, and variables, and can also include runnable code. Any Python file can be referenced as a module.
Python Modules, What is Module?, Benefits of Modules, Types of Modules, Built-in Modules, User-defined Modules, and how to use modules.
Python Language Modules
1. What is Python Module?
2. Purpose of Modules
3. Types of Modules
4. How to use Modules
5. User-defined Modules in Python
Python User Input, Read Input, input() function, print() function, validate user input in Python, input type check, and read specific input.
Like all high-level languages, Python is easy to read, takes less time to write, and is portable. Python language has two versions: Python 2 and Python 3. Python 2.x is legacy, Python 3.x is the present and future of the language.
Python 2 is no longer in development and all new features will be added in Python 3.
Python supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files and Python treats files differently as text or binary.
File handling in Python, Python open Function, Python IO, Create a File in Python, Read a Text File, Write data to a file, and Delete a File.
Python Tutorial, Python Environment Setup (Download & Install Python), Python Basic Syntax, Python Language Fundamentals, and Python Object-Oriented Programming.