Skip to content

Commit

Permalink
Update 2_python_functions.ipynb
Browse files Browse the repository at this point in the history
Co-authored-by: Rowena Jones <[email protected]>
  • Loading branch information
chaabani-anis and RoRoJ authored Feb 5, 2024
1 parent f763b8e commit fb1781a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2_python_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"**addition(a, b):** This function takes two numbers as input and returns their sum. \n",
"**subtraction(a, b):** This function takes two numbers as input and returns their difference (a - b). \n",
"**multiplication(a, b):** This function takes two numbers as input and returns their product. \n",
"**division(a, b):** This function takes two numbers as input and returns the result of the division (a / b). Ensure to handle the case where b is equal to zero.\n",
"**division(a, b):** This function takes two numbers as input and returns the result of the division (a / b). Ensure you handle the case where b is equal to zero.\n",
"\n",
"#### Main Function:\n",
"**calculator():** This function is the main function of the calculator. It should prompt the user to choose an operation among addition, subtraction, multiplication, and division. Then, it should ask the user to input two numbers, call the appropriate function based on the user's choice, and display the result.\n",
Expand Down

0 comments on commit fb1781a

Please sign in to comment.