Skip to content

Commit

Permalink
Jupyter Notebook for Module 4 (v3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsourav committed Nov 1, 2018
1 parent 7e303b6 commit 29d7215
Showing 1 changed file with 47 additions and 11 deletions.
58 changes: 47 additions & 11 deletions Module4_Functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Enter a number, please : 34\n",
"34 is of type <class 'int'>\n"
"Enter a number, please : 23\n",
"23 is of type <class 'int'>\n"
]
}
],
Expand All @@ -108,19 +108,23 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Enter a list of numbers, please : [2,5,3,4,1]\n",
"['[', '2', ',', '5', ',', '3', ',', '4', ',', '1', ']'] is of type <class 'list'>\n",
"Enter a list of numbers, please : [1, 2, 3, 4, 5]\n",
"['[', '1', ',', ' ', '2', ',', ' ', '3', ',', ' ', '4', ',', ' ', '5', ']'] is of type <class 'list'>\n",
"\n",
"[[[[[[[[[[\n",
"2222222222\n",
"1111111111\n",
",,,,,,,,,,\n",
"5555555555\n",
" \n",
"2222222222\n",
",,,,,,,,,,\n",
" \n",
"3333333333\n",
",,,,,,,,,,\n",
" \n",
"4444444444\n",
",,,,,,,,,,\n",
"1111111111\n",
" \n",
"5555555555\n",
"]]]]]]]]]]\n"
]
}
Expand Down Expand Up @@ -153,13 +157,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Enter a list of numbers, please : [3,4,1,2,5]\n",
"[3, 4, 1, 2, 5] is of type <class 'list'>\n",
"Enter a list of numbers, please : [1, 2, 3, 4, 5]\n",
"[1, 2, 3, 4, 5] is of type <class 'list'>\n",
"\n",
"30\n",
"40\n",
"10\n",
"20\n",
"30\n",
"40\n",
"50\n"
]
}
Expand Down Expand Up @@ -237,6 +241,22 @@
" print(\"Item Code: {i:2d}, Price: {p:4.2f}\".format(i = item, p = price))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Quick Tasks\n",
"\n",
"- Create a Temperature converter with user input format `32 C to F` or `98.6 F to C`. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -736,6 +756,22 @@
"sqrt(5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### (not so) Quick Tasks\n",
"\n",
"- Build the Bulls and Cows (https://en.wikipedia.org/wiki/Bulls_and_Cows) using appropriate Python functions. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 29d7215

Please sign in to comment.