Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions A simple calculator using functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@
"welcome to my calculator\n",
"A)dd numbers\n",
"S)ubtract numbers\n",
"M)ultiply numbers\n" ,
"choose your options\n",
"enter the first number5\n",
"enter the first number4\n",
"the answer from your calcaulation is=1\n",
"A)dd numbers\n",
"S)ubtract numbers\n",
"M)ultiply numbers\n",
"choose your optionr\n",
"sorry that is not a valid menu choice \n",
"A)dd numbers\n",
"S)ubtract numbers\n",
"M)ultiply numbers\n",
"choose your optiona\n",
"enter the first numbera\n",
"That was not a valid number.. please try again\n",
Expand Down Expand Up @@ -97,6 +100,10 @@
" \n",
" return x\n",
"\n",
"def mul(x,y):\n",
" \n",
" return x*y\n",
"\n",
"def add(x,y):\n",
" \n",
" return x+y\n",
Expand Down