Python Tutorial
(Codes)
Mustafa GERMEC, PhD
,TABLE OF CONTENTS
PYTHON TUTORIAL
1 Introduction to Python 4
2 Strings in Python 15
3 Lists in Python 24
4 Tuples in Python 37
5 Sets in Python 46
6 Dictionaries in Python 55
7 Conditions in Python 64
8 Loops in Python 73
9 Functions in Python 84
10 Exception Handling in Python 98
11 Built-in Functions in Python 108
12 Classes and Objects in Python 143
13 Reading Files in Python 158
14 Writing Files in Python 166
15 String Operators and Functions in Python 176
16 Arrays in Python 190
17 Lambda Functions in Python 200
18 Math Module Functions in Python 206
19 List Comprehension in Python 227
20 Decorators in Python 235
21 Generators in Python 249
,To my family…
, 5.06.2022 15:57 01. introduction_python - Jupyter Notebook
Python Tutorial
Created by Mustafa Germec, PhD
1. Introduction to Python
First code
In [4]:
1 import handcalcs.render
In [2]:
1 # First python output with 'Print' functions
2 print('Hello World!')
3 print('Hi, Python!')
Hello World!
Hi, Python!
Version control
localhost:8888/notebooks/Desktop/PROGRAMMING_WEB DEVELOPMENT/PYTHON_TUTORIAL/01. python_files_for_sharing/jupyter_notebo… 1/11
(Codes)
Mustafa GERMEC, PhD
,TABLE OF CONTENTS
PYTHON TUTORIAL
1 Introduction to Python 4
2 Strings in Python 15
3 Lists in Python 24
4 Tuples in Python 37
5 Sets in Python 46
6 Dictionaries in Python 55
7 Conditions in Python 64
8 Loops in Python 73
9 Functions in Python 84
10 Exception Handling in Python 98
11 Built-in Functions in Python 108
12 Classes and Objects in Python 143
13 Reading Files in Python 158
14 Writing Files in Python 166
15 String Operators and Functions in Python 176
16 Arrays in Python 190
17 Lambda Functions in Python 200
18 Math Module Functions in Python 206
19 List Comprehension in Python 227
20 Decorators in Python 235
21 Generators in Python 249
,To my family…
, 5.06.2022 15:57 01. introduction_python - Jupyter Notebook
Python Tutorial
Created by Mustafa Germec, PhD
1. Introduction to Python
First code
In [4]:
1 import handcalcs.render
In [2]:
1 # First python output with 'Print' functions
2 print('Hello World!')
3 print('Hi, Python!')
Hello World!
Hi, Python!
Version control
localhost:8888/notebooks/Desktop/PROGRAMMING_WEB DEVELOPMENT/PYTHON_TUTORIAL/01. python_files_for_sharing/jupyter_notebo… 1/11