Skip to content

Commit 768182c

Browse files
committed
Updated Python Basics FizzBuzz before video
1 parent b5b8131 commit 768182c

File tree

3 files changed

+8
-30
lines changed

3 files changed

+8
-30
lines changed

Python_Basics/Intro/.ipynb_checkpoints/PythonBasicsForLoops-checkpoint.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
"cell_type": "markdown",
516516
"metadata": {},
517517
"source": [
518-
"https://www.youtube.com/watch?v=JqGjkNzzU4s"
518+
"https://youtu.be/8fswDyk9UIY"
519519
]
520520
}
521521
],

Python_Basics/Intro/PythonBasicsFizzBuzz.ipynb

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
}
4848
],
4949
"source": [
50+
"# Solution 1\n",
5051
"for num in range(1,21):\n",
5152
" string = \"\"\n",
5253
" if num % 3 == 0:\n",
@@ -92,6 +93,11 @@
9293
}
9394
],
9495
"source": [
96+
"# Solution 2\n",
97+
"# an elif statement allows you to check multiple expressions\n",
98+
"# for True and execute a block of code as soon as one of \n",
99+
"# the conditions evaluates to True\n",
100+
"\n",
95101
"for num in range(0, 21):\n",
96102
" if num % 3 == 0 and num % 5 == 0:\n",
97103
" print('FizzBuzz')\n",
@@ -137,34 +143,6 @@
137143
"source": [
138144
"https://www.youtube.com/watch?v=JqGjkNzzU4s"
139145
]
140-
},
141-
{
142-
"cell_type": "markdown",
143-
"metadata": {},
144-
"source": [
145-
"https://www.quora.com/How-do-I-print-out-odd-and-even-numbers-in-python-using-list-and-loop "
146-
]
147-
},
148-
{
149-
"cell_type": "markdown",
150-
"metadata": {},
151-
"source": [
152-
"https://www.quora.com/How-do-I-find-the-minimum-odd-number-from-a-list-of-numbers-in-Python"
153-
]
154-
},
155-
{
156-
"cell_type": "markdown",
157-
"metadata": {},
158-
"source": [
159-
"https://www.quora.com/In-Python-how-do-I-find-the-total-of-odd-numbers-from-a-list"
160-
]
161-
},
162-
{
163-
"cell_type": "markdown",
164-
"metadata": {},
165-
"source": [
166-
"https://www.quora.com/How-can-I-make-for-loops-work-in-Python"
167-
]
168146
}
169147
],
170148
"metadata": {

Python_Basics/Intro/PythonBasicsForLoops.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
"cell_type": "markdown",
516516
"metadata": {},
517517
"source": [
518-
"https://www.youtube.com/watch?v=JqGjkNzzU4s"
518+
"https://youtu.be/8fswDyk9UIY"
519519
]
520520
}
521521
],

0 commit comments

Comments
 (0)