Skip to content

Commit f7ebbfc

Browse files
authored
Add files via upload
1 parent e70583f commit f7ebbfc

16 files changed

+1812
-0
lines changed

Python_Docstrings.ipynb

+866
Large diffs are not rendered by default.

config.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
a = 0
2+
b = "empty"

equal.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Python Module example
2+
3+
#function definition
4+
def equal(a, b):
5+
if(a == b):
6+
return True
7+
8+
9+
10+
11+
12+
13+
14+

equal1.ipynb

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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/04_Python_Functions)**\n",
9+
"</i></small></small>"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 1,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"# Python Module example\n",
19+
"\n",
20+
"#function definition\n",
21+
"def equal(a, b):\n",
22+
" if(a == b):\n",
23+
" return True"
24+
]
25+
},
26+
{
27+
"cell_type": "code",
28+
"execution_count": null,
29+
"metadata": {},
30+
"outputs": [],
31+
"source": []
32+
}
33+
],
34+
"metadata": {
35+
"hide_input": false,
36+
"kernelspec": {
37+
"display_name": "Python 3",
38+
"language": "python",
39+
"name": "python3"
40+
},
41+
"language_info": {
42+
"codemirror_mode": {
43+
"name": "ipython",
44+
"version": 3
45+
},
46+
"file_extension": ".py",
47+
"mimetype": "text/x-python",
48+
"name": "python",
49+
"nbconvert_exporter": "python",
50+
"pygments_lexer": "ipython3",
51+
"version": "3.8.8"
52+
},
53+
"toc": {
54+
"base_numbering": 1,
55+
"nav_menu": {},
56+
"number_sections": true,
57+
"sideBar": true,
58+
"skip_h1_title": false,
59+
"title_cell": "Table of Contents",
60+
"title_sidebar": "Contents",
61+
"toc_cell": false,
62+
"toc_position": {},
63+
"toc_section_display": true,
64+
"toc_window_display": false
65+
},
66+
"varInspector": {
67+
"cols": {
68+
"lenName": 16,
69+
"lenType": 16,
70+
"lenVar": 40
71+
},
72+
"kernels_config": {
73+
"python": {
74+
"delete_cmd_postfix": "",
75+
"delete_cmd_prefix": "del ",
76+
"library": "var_list.py",
77+
"varRefreshCmd": "print(var_dic_list())"
78+
},
79+
"r": {
80+
"delete_cmd_postfix": ") ",
81+
"delete_cmd_prefix": "rm(",
82+
"library": "var_list.r",
83+
"varRefreshCmd": "cat(var_dic_list()) "
84+
}
85+
},
86+
"types_to_exclude": [
87+
"module",
88+
"function",
89+
"builtin_function_or_method",
90+
"instance",
91+
"_Feature"
92+
],
93+
"window_display": false
94+
}
95+
},
96+
"nbformat": 4,
97+
"nbformat_minor": 4
98+
}

example.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Python Module example
2+
3+
def add(a, b):
4+
"""This program adds two
5+
numbers and return the result"""
6+
7+
result = a + b
8+
return result
9+
10+
11+
12+
13+
14+
15+
16+

fibo.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Fibonacci numbers module
2+
def fib(n): # return Fibonacci series up to n
3+
result = []
4+
a, b = 0, 1
5+
while b < n:
6+
result.append(b)
7+
a, b = b, a + b
8+
return result
9+
10+
11+
12+

fibo1.ipynb

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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/04_Python_Functions)**\n",
9+
"</i></small></small>"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 1,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"# Fibonacci numbers module\n",
19+
"def fib(n): # return Fibonacci series up to n\n",
20+
" result = []\n",
21+
" a, b = 0, 1\n",
22+
" while b < n:\n",
23+
" result.append(b)\n",
24+
" a, b = b, a + b\n",
25+
" return result"
26+
]
27+
},
28+
{
29+
"cell_type": "code",
30+
"execution_count": null,
31+
"metadata": {},
32+
"outputs": [],
33+
"source": []
34+
}
35+
],
36+
"metadata": {
37+
"hide_input": false,
38+
"kernelspec": {
39+
"display_name": "Python 3",
40+
"language": "python",
41+
"name": "python3"
42+
},
43+
"language_info": {
44+
"codemirror_mode": {
45+
"name": "ipython",
46+
"version": 3
47+
},
48+
"file_extension": ".py",
49+
"mimetype": "text/x-python",
50+
"name": "python",
51+
"nbconvert_exporter": "python",
52+
"pygments_lexer": "ipython3",
53+
"version": "3.8.8"
54+
},
55+
"toc": {
56+
"base_numbering": 1,
57+
"nav_menu": {},
58+
"number_sections": true,
59+
"sideBar": true,
60+
"skip_h1_title": false,
61+
"title_cell": "Table of Contents",
62+
"title_sidebar": "Contents",
63+
"toc_cell": false,
64+
"toc_position": {},
65+
"toc_section_display": true,
66+
"toc_window_display": false
67+
},
68+
"varInspector": {
69+
"cols": {
70+
"lenName": 16,
71+
"lenType": 16,
72+
"lenVar": 40
73+
},
74+
"kernels_config": {
75+
"python": {
76+
"delete_cmd_postfix": "",
77+
"delete_cmd_prefix": "del ",
78+
"library": "var_list.py",
79+
"varRefreshCmd": "print(var_dic_list())"
80+
},
81+
"r": {
82+
"delete_cmd_postfix": ") ",
83+
"delete_cmd_prefix": "rm(",
84+
"library": "var_list.r",
85+
"varRefreshCmd": "cat(var_dic_list()) "
86+
}
87+
},
88+
"types_to_exclude": [
89+
"module",
90+
"function",
91+
"builtin_function_or_method",
92+
"instance",
93+
"_Feature"
94+
],
95+
"window_display": false
96+
}
97+
},
98+
"nbformat": 4,
99+
"nbformat_minor": 4
100+
}

greet.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Welcome to Dr Parmar's Python4DataScience class")

greet1.ipynb

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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/04_Python_Functions)**\n",
9+
"</i></small></small>"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 1,
15+
"metadata": {
16+
"ExecuteTime": {
17+
"end_time": "2021-06-14T09:01:30.694301Z",
18+
"start_time": "2021-06-14T09:01:30.679651Z"
19+
}
20+
},
21+
"outputs": [
22+
{
23+
"name": "stdout",
24+
"output_type": "stream",
25+
"text": [
26+
"Welcome to Dr Parmar's Python4DataScience class\n"
27+
]
28+
}
29+
],
30+
"source": [
31+
"print(\"Welcome to Dr Parmar's Python4DataScience class\")"
32+
]
33+
},
34+
{
35+
"cell_type": "code",
36+
"execution_count": null,
37+
"metadata": {},
38+
"outputs": [],
39+
"source": []
40+
}
41+
],
42+
"metadata": {
43+
"hide_input": false,
44+
"kernelspec": {
45+
"display_name": "Python 3",
46+
"language": "python",
47+
"name": "python3"
48+
},
49+
"language_info": {
50+
"codemirror_mode": {
51+
"name": "ipython",
52+
"version": 3
53+
},
54+
"file_extension": ".py",
55+
"mimetype": "text/x-python",
56+
"name": "python",
57+
"nbconvert_exporter": "python",
58+
"pygments_lexer": "ipython3",
59+
"version": "3.8.8"
60+
},
61+
"toc": {
62+
"base_numbering": 1,
63+
"nav_menu": {},
64+
"number_sections": true,
65+
"sideBar": true,
66+
"skip_h1_title": false,
67+
"title_cell": "Table of Contents",
68+
"title_sidebar": "Contents",
69+
"toc_cell": false,
70+
"toc_position": {},
71+
"toc_section_display": true,
72+
"toc_window_display": false
73+
},
74+
"varInspector": {
75+
"cols": {
76+
"lenName": 16,
77+
"lenType": 16,
78+
"lenVar": 40
79+
},
80+
"kernels_config": {
81+
"python": {
82+
"delete_cmd_postfix": "",
83+
"delete_cmd_prefix": "del ",
84+
"library": "var_list.py",
85+
"varRefreshCmd": "print(var_dic_list())"
86+
},
87+
"r": {
88+
"delete_cmd_postfix": ") ",
89+
"delete_cmd_prefix": "rm(",
90+
"library": "var_list.r",
91+
"varRefreshCmd": "cat(var_dic_list()) "
92+
}
93+
},
94+
"types_to_exclude": [
95+
"module",
96+
"function",
97+
"builtin_function_or_method",
98+
"instance",
99+
"_Feature"
100+
],
101+
"window_display": false
102+
}
103+
},
104+
"nbformat": 4,
105+
"nbformat_minor": 4
106+
}

0 commit comments

Comments
 (0)