Python from Beginner to Advanced.pdf
(
3796 KB
)
Pobierz
Python from Beginner
to Advanced
Python from Beginner to Advanced
1. Introduction to Python
Starting with Python
Python Installation
Introduction to Python
High Level Language
Interpreted Language
Dynamically Typed Language
Object-Oriented Language
Advantages and disadvantages of using Python
Advantages of using Python
Disadvantages of using Python
Setting up an Integrated Development Environment:
Writing first code using VS Code IDE:
2. Variables and Data Types in Python
Variables in Python
Data types in Python
Strings
Integers
Floats
Boolean
Let’s test our knowledge!
3. Python tuples, lists, sets and dictionaries
Introduction to Python tuples, lists, sets and dictionaries
Lists in Python
Basic operations with lists
Python tuples
Difference between Python tuples and lists
4. Python sets and dictionaries
Python sets
Operations in Python sets
Adding an element in a set
Removing an element from a set
Dictionaries in Python
Difference Between Python sets and dictionaries
4
4
4
7
7
8
8
8
8
8
9
9
11
13
13
13
13
16
16
17
17
19
19
19
19
22
23
23
23
24
24
25
26
28
5. Conditional statements in Python
Conditional Statements in Python – what do they do?
Python input()
If statement in Python
Syntax in Python
If else in Python
6. Loops in Python
Loops in Python
For loop in Python
For loops in List
Iterating a set using for loop
Iterating a tuple using for loop
Iterating a dictionary using for loop
Nested loops in Python
While Loops in Python
7. Python functions
Python functions as objects
Storing Python functions in Data Structures
8. Advanced functions in Python
Passing functions to other functions
Using functions inside a function
*Args in Python
“*” operator in Python
**kwargs in Python
9. Python classes and objects
Python classes – definition
Initialization of Python classes
Let’s write our first Python class
Attributes
Behavior of the class
Objects in Python
Inheritance
10. Files in Python
Files in Python – definition:
Examples of binary files in Python:
Examples of text files in Python:
Operations on files in Python
Functions involved in reading files in Python
11. Python applications in practice
Creating a guessing numbers game
28
28
28
29
29
30
32
32
32
33
34
35
35
35
36
37
39
41
41
41
42
42
43
45
47
47
47
47
48
48
49
51
53
53
53
53
53
55
58
58
Python from Beginner to Advanced
This Python e-book will help you understand all the vital elements of the Python programming language. Anyone who
wants to learn Python without any prior experience in programming and anyone who wants to refresh their Python
knowledge can read this e-book and get a grip on widely used Python concepts.
1. Introduction to Python
Starting with Python
After reading this Python e-book, the you will be able to write programs in Python, use any Python libraries and develop
their own packages using Python.
The first step in learning any programming language is to set up the environment for writing programs. As we are going
through a Python e-book, we will start with installing Python in three different OS platforms.
Python Installation
To check if Python is already installed, follow the below-mentioned steps.
•
•
Press Windows + r to get the run.
Then type cmd and press enter.
•
After opening the cmd. you can check if Python is already installed by using typing Python into the cmd.
4
We can also check the version of Python installed by using commands as demonstrated below.
Now we will walk through on how to install Python in Windows. Links are provided for quick navigation when following the
e-book. From the Python for Windows weblink, the stable version of Python can be downloaded with your choice between
64 bit or 32-bit Operating system versions.
5
Plik z chomika:
ifirmasa
Inne pliki z tego folderu:
Python from Beginner to Advanced.epub
(5596 KB)
Python from Beginner to Advanced.pdf
(3796 KB)
Inne foldery tego chomika:
Dla przedsiębiorcy
Figma
HR
JavaScript
Scrum
Zgłoś jeśli
naruszono regulamin