Skip to content

Commit 66820ae

Browse files
authored
Add files via upload
1 parent 0e786ca commit 66820ae

File tree

1 file changed

+365
-0
lines changed

1 file changed

+365
-0
lines changed

000_Intro_to_Python.ipynb

Lines changed: 365 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,365 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"<small><small><i>\n",
8+
"All the IPython Notebooks in this lecture series by Dr. Milan Parmar are available @ **[GitHub](https://github.com/milaan9/01_Python_Introduction)**\n",
9+
"</i></small></small>"
10+
]
11+
},
12+
{
13+
"cell_type": "markdown",
14+
"metadata": {},
15+
"source": [
16+
"# Learn Python Programming\n",
17+
"<br>\n",
18+
"<div>\n",
19+
"<img src=\"img/logo.png\" width=\"200\"/>\n",
20+
"</div>\n",
21+
"\n",
22+
"Python is a **general-purpose, mordern, dynamic, robust, high level** and **interpreted** programming language. It is used in web development, data science, creating software prototypes, and so on. Fortunately for beginners, Python has simple easy-to-use syntax. This makes Python an excellent language to learn to program for beginners."
23+
]
24+
},
25+
{
26+
"cell_type": "markdown",
27+
"metadata": {},
28+
"source": [
29+
"## [Python Introduction](https://github.com/milaan9/01_Python_Introduction)\n",
30+
"\n",
31+
"✅ **[What is Programming?](https://github.com/milaan9/01_Python_Introduction/blob/main/0000_What_is_Programming.ipynb)**\n",
32+
"\n",
33+
"✅ **[Introduction to Python](https://github.com/milaan9/01_Python_Introduction/blob/main/000_Intro_to_Python.ipynb)**\n",
34+
"\n",
35+
"✅ **[Python Programming](https://github.com/milaan9/01_Python_Introduction/blob/main/001_Python_Programming.ipynb)**\n",
36+
"\n",
37+
"✅ **[Getting Started](https://github.com/milaan9/01_Python_Introduction/blob/main/002_How_to_install_Python.ipynb)**\n",
38+
"\n",
39+
"✅ **[Jupyter Keyboard Shortcuts Practice](https://github.com/milaan9/01_Python_Introduction/blob/main/003_Jupyter_Keyboard_Shortcuts_Practice.ipynb)**\n",
40+
"\n",
41+
"✅ **[Hello World](https://github.com/milaan9/01_Python_Introduction/blob/main/004_Hello_World.ipynb)**\n",
42+
"\n",
43+
"✅ **[Keywords and Identifiers](https://github.com/milaan9/01_Python_Introduction/blob/main/005_Python_Keywords_and_Identifiers.ipynb)**\n",
44+
"\n",
45+
"✅ **[Statements, Indentation & Comments](https://github.com/milaan9/01_Python_Introduction/blob/main/006_Python_Statement_Indentation_Comments.ipynb)**\n",
46+
"\n",
47+
"✅ **[Python Variables & Constants](https://github.com/milaan9/01_Python_Introduction/blob/main/007_Python_Variables_%26_Constants.ipynb)**\n",
48+
"\n",
49+
"✅ **[Python Literals](https://github.com/milaan9/01_Python_Introduction/blob/main/008_Python_Literals.ipynb)**\n",
50+
"\n",
51+
"✅ **[Python Datatypes](https://github.com/milaan9/01_Python_Introduction/blob/main/009_Python_Data_Types.ipynb)**\n",
52+
"\n",
53+
"✅ **[Python Type Conversion](https://github.com/milaan9/01_Python_Introduction/blob/main/010_Python_Type_Conversion.ipynb)**\n",
54+
"\n",
55+
"✅ **[Python I/O and import](https://github.com/milaan9/01_Python_Introduction/blob/main/011_Python_Input_Output_Import.ipynb)**\n",
56+
"\n",
57+
"✅ **[Python Operators](https://github.com/milaan9/01_Python_Introduction/blob/main/012_Python_Operators.ipynb)**\n",
58+
"\n",
59+
"✅ **[Python Namespace & Scope](https://github.com/milaan9/01_Python_Introduction/blob/main/013_Python_Namespace_and_Scope.ipynb)**\n",
60+
"\n",
61+
"✅ **[Python Keyword List](https://github.com/milaan9/01_Python_Introduction/blob/main/Python_Keywords_List.ipynb)**"
62+
]
63+
},
64+
{
65+
"cell_type": "markdown",
66+
"metadata": {},
67+
"source": [
68+
"## [Python Data Types](https://github.com/milaan9/02_Python_Datatypes)\n",
69+
"\n",
70+
"✅ **[Python Numbers](https://github.com/milaan9/02_Python_Datatypes/blob/main/001_Python_Numbers.ipynb)**\n",
71+
"\n",
72+
"✅ **[Python String](https://github.com/milaan9/02_Python_Datatypes/blob/main/002_Python_String.ipynb)**\n",
73+
"\n",
74+
"✅ **[Python List](https://github.com/milaan9/02_Python_Datatypes/blob/main/003_Python_List.ipynb)**\n",
75+
"\n",
76+
"✅ **[Python Tuple](https://github.com/milaan9/02_Python_Datatypes/blob/main/004_Python_Tuple.ipynb)**\n",
77+
"\n",
78+
"✅ **[Python Dictionary](https://github.com/milaan9/02_Python_Datatypes/blob/main/005_Python_Dictionary.ipynb)**\n",
79+
"\n",
80+
"✅ **[Python Sets](https://github.com/milaan9/02_Python_Datatypes/blob/main/006_Python_Sets.ipynb)**"
81+
]
82+
},
83+
{
84+
"cell_type": "markdown",
85+
"metadata": {},
86+
"source": [
87+
"## [Python Flow Control](https://github.com/milaan9/03_Python_Flow_Control)\n",
88+
"\n",
89+
"✅ **[Python Flow Control Statement](https://github.com/milaan9/03_Python_Flow_Control/blob/main/000_Python_Flow_Control_statement%20.ipynb)**\n",
90+
"\n",
91+
"✅ **[Python if statement](https://github.com/milaan9/03_Python_Flow_Control/blob/main/001_Python_if_statement.ipynb)**\n",
92+
"\n",
93+
"✅ **[Python if-else statement](https://github.com/milaan9/03_Python_Flow_Control/blob/main/002_Python_if_else_statement.ipynb)**\n",
94+
"\n",
95+
"✅ **[Python if-elif-else statement](https://github.com/milaan9/03_Python_Flow_Control/blob/main/003_Python_if_elif_else_statement%20.ipynb)**\n",
96+
"\n",
97+
"✅ **[Python Nested if statement](https://github.com/milaan9/03_Python_Flow_Control/blob/main/004_Python_Nested_if_statement.ipynb)**\n",
98+
"\n",
99+
"✅ **[Python for loop](https://github.com/milaan9/03_Python_Flow_Control/blob/main/005_Python_for_Loop.ipynb)**\n",
100+
"\n",
101+
"✅ **[Python while loop](https://github.com/milaan9/03_Python_Flow_Control/blob/main/006_Python_while_Loop.ipynb)**\n",
102+
"\n",
103+
"✅ **[Python break, continue & pass statements](https://github.com/milaan9/03_Python_Flow_Control/blob/main/007_Python_break_continue_pass_statements.ipynb)**"
104+
]
105+
},
106+
{
107+
"cell_type": "markdown",
108+
"metadata": {},
109+
"source": [
110+
"## [Python Functions](https://github.com/milaan9/04_Python_Functions)\n",
111+
"\n",
112+
"✅ **[Python Functions](https://github.com/milaan9/04_Python_Functions/blob/main/001_Python_Functions.ipynb)**\n",
113+
"\n",
114+
"✅ **[Global, Local & Nonlocal](https://github.com/milaan9/04_Python_Functions/blob/main/002_Python_Function_Global_Local_Nonlocal.ipynb)**\n",
115+
"\n",
116+
"✅ **[Global keyword](https://github.com/milaan9/04_Python_Functions/blob/main/003_Python_Function_global_Keywords.ipynb)**\n",
117+
"\n",
118+
"✅ **[Function Argument](https://github.com/milaan9/04_Python_Functions/blob/main/004_Python_Function_Arguments.ipynb)**\n",
119+
"\n",
120+
"✅ **[Function Recursion](https://github.com/milaan9/04_Python_Functions/blob/main/005_Python_Function_Recursion.ipynb)**\n",
121+
"\n",
122+
"✅ **[Function Anonymous](https://github.com/milaan9/04_Python_Functions/blob/main/006_Python_Function_Anonymous.ipynb)**\n",
123+
"\n",
124+
"✅ **[Function Module](https://github.com/milaan9/04_Python_Functions/blob/main/007_Python_Function_Module.ipynb)**\n",
125+
"\n",
126+
"✅ **[Function random Module](https://github.com/milaan9/04_Python_Functions/blob/main/008_Python_Function_random_Module.ipynb)**\n",
127+
"\n",
128+
"✅ **[Function math Module](https://github.com/milaan9/04_Python_Functions/blob/main/009_Python_Function_math_Module.ipynb.ipynb)**\n",
129+
"\n",
130+
"✅ **[Function Package](https://github.com/milaan9/04_Python_Functions/blob/main/010_Python_Function_Package.ipynb)**\n",
131+
"\n",
132+
"✅ **[Python Docstrings](https://github.com/milaan9/04_Python_Functions/blob/main/Python_Docstrings.ipynb)**\n",
133+
"\n",
134+
"✅ **[User-defined Function](https://github.com/milaan9/04_Python_Functions/blob/main/Python_User_defined_Functions.ipynb)**"
135+
]
136+
},
137+
{
138+
"cell_type": "markdown",
139+
"metadata": {},
140+
"source": [
141+
"## [Python Files](https://github.com/milaan9/05_Python_Files)\n",
142+
"\n",
143+
"✅ **[Python File I/O](https://github.com/milaan9/05_Python_Files/blob/main/001_Python_File_Input_Output.ipynb)**\n",
144+
"\n",
145+
"✅ **[Python File Directory](https://github.com/milaan9/05_Python_Files/blob/main/002_Python_File_Directory.ipynb)**\n",
146+
"\n",
147+
"✅ **[Python File Exception](https://github.com/milaan9/05_Python_Files/blob/main/003_Python_File_Exception.ipynb)**\n",
148+
"\n",
149+
"✅ **[Python Exceptions Handeling](https://github.com/milaan9/05_Python_Files/blob/main/004_Python_Exceptions_Handling.ipynb)**\n",
150+
"\n",
151+
"✅ **[Python User-defined Exceptions](https://github.com/milaan9/05_Python_Files/blob/main/005_Python_User_defined_Exceptions.ipynb)**"
152+
]
153+
},
154+
{
155+
"cell_type": "markdown",
156+
"metadata": {},
157+
"source": [
158+
"## [Python Object Class](https://github.com/milaan9/06_Python_Object_Class)\n",
159+
"\n",
160+
"✅ **[Python OOPs Concepts](https://github.com/milaan9/06_Python_Object_Class/blob/main/001_Python_OOPs_Concepts.ipynb)**\n",
161+
"\n",
162+
"✅ **[Python Classes & Objects](https://github.com/milaan9/06_Python_Object_Class/blob/main/002_Python_Classes_and_Objects.ipynb)**\n",
163+
"\n",
164+
"✅ **[Python Inheritance](https://github.com/milaan9/06_Python_Object_Class/blob/main/003_Python_Inheritance.ipynb)**\n",
165+
"\n",
166+
"✅ **[Python Operator Overloading](https://github.com/milaan9/06_Python_Object_Class/blob/main/004_Python_Operator_Overloading.ipynb)**"
167+
]
168+
},
169+
{
170+
"cell_type": "markdown",
171+
"metadata": {},
172+
"source": [
173+
"## [Python Advanced Topics](https://github.com/milaan9/07_Python_Advanced_Topics)\n",
174+
"\n",
175+
"✅ **[Python Iterator](https://github.com/milaan9/07_Python_Advanced_Topics/blob/main/001_Python_Iterators.ipynb)**\n",
176+
"\n",
177+
"✅ **[Python Generator](https://github.com/milaan9/07_Python_Advanced_Topics/blob/main/002_Python_Generators.ipynb)**\n",
178+
"\n",
179+
"✅ **[Python Closure](https://github.com/milaan9/07_Python_Advanced_Topics/blob/main/003_Python_Closure.ipynb)**\n",
180+
"\n",
181+
"✅ **[Python Decorators](https://github.com/milaan9/07_Python_Advanced_Topics/blob/main/004_Python_Decorators.ipynb)**\n",
182+
"\n",
183+
"✅ **[Python Property](https://github.com/milaan9/07_Python_Advanced_Topics/blob/main/005_Python_Property.ipynb)**\n",
184+
"\n",
185+
"✅ **[Python RegEx](https://github.com/milaan9/07_Python_Advanced_Topics/blob/main/006_Python_RegEx.ipynb)**"
186+
]
187+
},
188+
{
189+
"cell_type": "markdown",
190+
"metadata": {},
191+
"source": [
192+
"## [Python Date & Time Module](https://github.com/milaan9/08_Python_Date_Time_Module)\n",
193+
"\n",
194+
"✅ **[Python datetime Module](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/001_Python_datetime_Module.ipynb)**\n",
195+
"\n",
196+
"✅ **[Python datetime.strftime()](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/002_Python_strftime().ipynb)**\n",
197+
"\n",
198+
"✅ **[Python datetime.strptime()](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/003_Python_strptime().ipynb)**\n",
199+
"\n",
200+
"✅ **[Current date & time](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/004_Python_current_date_and_time.ipynb)**\n",
201+
"\n",
202+
"✅ **[Get current time](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/005_Python_get_current_time.ipynb)**\n",
203+
"\n",
204+
"✅ **[Timestamp to datetime](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/006_Python_timestamp_to_datetime.ipynb)**\n",
205+
"\n",
206+
"✅ **[Python time Module](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/007_Python_time_Module.ipynb)**\n",
207+
"\n",
208+
"✅ **[Python time.sleep()](https://github.com/milaan9/08_Python_Date_Time_Module/blob/main/008_Python_sleep().ipynb)**"
209+
]
210+
},
211+
{
212+
"cell_type": "markdown",
213+
"metadata": {},
214+
"source": [
215+
"## [Python Numpy Module](https://github.com/milaan9/09_Python_NumPy_Module)\n",
216+
"\n",
217+
"✅ **[Python Numpy](https://github.com/milaan9/09_Python_NumPy_Module/blob/main/001_Python_NumPy.ipynb)**\n",
218+
"\n",
219+
"✅ **[Python Numpy Array](https://github.com/milaan9/09_Python_NumPy_Module/blob/main/002_Python_NumPy_Array.ipynb)**"
220+
]
221+
},
222+
{
223+
"cell_type": "markdown",
224+
"metadata": {},
225+
"source": [
226+
"## [Python Pandas Module](https://github.com/milaan9/10_Python_Pandas_Module)\n",
227+
"\n",
228+
"✅ **[Python Pandas Dataframe](https://github.com/milaan9/10_Python_Pandas_Module/blob/main/001_Python_Pandas_DataFrame.ipynb)**\n",
229+
"\n",
230+
"✅ **[Python Pandas Exercise 1](https://github.com/milaan9/10_Python_Pandas_Module/blob/main/002_Python_Pandas_Exercise_1.ipynb)**\n",
231+
"\n",
232+
"✅ **[Python Pandas Exercise 2](https://github.com/milaan9/10_Python_Pandas_Module/blob/main/003_Python_Pandas_Exercise_2.ipynb)**"
233+
]
234+
},
235+
{
236+
"cell_type": "markdown",
237+
"metadata": {},
238+
"source": [
239+
"## [Python Matplotlib Module](https://github.com/milaan9/11_Python_Matplotlib_Module)\n",
240+
"\n",
241+
"✅ **[Python Matplotlib pyplot]()**\n",
242+
"\n",
243+
"✅ **[Python Matplotlib Exercise 1](https://github.com/milaan9/11_Python_Matplotlib_Module/blob/main/002_Python_Matplotlib_Exercise_1.ipynb)**\n",
244+
"\n",
245+
"✅ **[Python Matplotlib Exercise 2](https://github.com/milaan9/11_Python_Matplotlib_Module/blob/main/003_Python_Matplotlib_Exercise_2.ipynb)**"
246+
]
247+
},
248+
{
249+
"cell_type": "markdown",
250+
"metadata": {},
251+
"source": [
252+
"## About Python Programming\n",
253+
"\n",
254+
"* **Free and open-source** - You can freely use and distribute Python, even for commercial use.\n",
255+
"* **Easy to learn** - Python has a very simple and elegant syntax. It's much easier to read and write Python programs compared to other languages like C++, Java, C#.\n",
256+
"* **Portable** - You can move Python programs from one platform to another, and run it without any changes."
257+
]
258+
},
259+
{
260+
"cell_type": "markdown",
261+
"metadata": {},
262+
"source": [
263+
"## Why Learn Python?\n",
264+
"\n",
265+
"* Python is easy to learn. Its syntax is easy and code is very readable.\n",
266+
"* Python has a lot of applications. It's used for developing web applications, data science, rapid application development, and so on.\n",
267+
"* Python allows you to write programs in fewer lines of code than most of the programming languages.\n",
268+
"* The popularity of Python is growing rapidly. Now it's one of the most popular programming languages."
269+
]
270+
},
271+
{
272+
"cell_type": "markdown",
273+
"metadata": {},
274+
"source": [
275+
"## How to learn Python?\n",
276+
"\n",
277+
"* **Python classes** - We provide step by step Python tutorials, examples, and references. **[Get started with Python]()**.\n",
278+
"* **Official Python tutorial** - Might be hard to follow and understand for beginners. Visit the official **[Python tutorial](https://docs.python.org/3/tutorial/)**.\n",
279+
"* **Write a lot of Python code** - The only way you can learn programming is by writing a lot of code."
280+
]
281+
},
282+
{
283+
"cell_type": "markdown",
284+
"metadata": {},
285+
"source": [
286+
"## Python Resources\n",
287+
"\n",
288+
"* **[Python Examples](https://github.com/milaan9/90_Python_Examples)**\n",
289+
"* **[Python References](https://github.com/milaan9/04_Python_Functions/tree/main/002_Python_Functions_Built_in)**\n",
290+
"* **[Python Online Compiler 1](https://www.w3schools.com/python/trypython.asp?filename=demo_compiler)**\n",
291+
"* **[Python Online Compiler 2](https://www.tutorialspoint.com/execute_python_online.php)**\n",
292+
"* **[Python Guide](https://github.com/milaan9/01_Python_Introduction/blob/main/001_Python_Programming.ipynb)**"
293+
]
294+
},
295+
{
296+
"cell_type": "markdown",
297+
"metadata": {},
298+
"source": []
299+
}
300+
],
301+
"metadata": {
302+
"hide_input": false,
303+
"kernelspec": {
304+
"display_name": "Python 3",
305+
"language": "python",
306+
"name": "python3"
307+
},
308+
"language_info": {
309+
"codemirror_mode": {
310+
"name": "ipython",
311+
"version": 3
312+
},
313+
"file_extension": ".py",
314+
"mimetype": "text/x-python",
315+
"name": "python",
316+
"nbconvert_exporter": "python",
317+
"pygments_lexer": "ipython3",
318+
"version": "3.8.8"
319+
},
320+
"toc": {
321+
"base_numbering": 1,
322+
"nav_menu": {},
323+
"number_sections": true,
324+
"sideBar": true,
325+
"skip_h1_title": false,
326+
"title_cell": "Table of Contents",
327+
"title_sidebar": "Contents",
328+
"toc_cell": false,
329+
"toc_position": {},
330+
"toc_section_display": true,
331+
"toc_window_display": false
332+
},
333+
"varInspector": {
334+
"cols": {
335+
"lenName": 16,
336+
"lenType": 16,
337+
"lenVar": 40
338+
},
339+
"kernels_config": {
340+
"python": {
341+
"delete_cmd_postfix": "",
342+
"delete_cmd_prefix": "del ",
343+
"library": "var_list.py",
344+
"varRefreshCmd": "print(var_dic_list())"
345+
},
346+
"r": {
347+
"delete_cmd_postfix": ") ",
348+
"delete_cmd_prefix": "rm(",
349+
"library": "var_list.r",
350+
"varRefreshCmd": "cat(var_dic_list()) "
351+
}
352+
},
353+
"types_to_exclude": [
354+
"module",
355+
"function",
356+
"builtin_function_or_method",
357+
"instance",
358+
"_Feature"
359+
],
360+
"window_display": false
361+
}
362+
},
363+
"nbformat": 4,
364+
"nbformat_minor": 2
365+
}

0 commit comments

Comments
 (0)