Question: Hide Folder Information Instructions Write a program in Colab to create two functions add ( ) and sub ( ) . These functions can accept
Hide Folder Information
Instructions
Write a program in Colab to create two functions add and sub These functions can accept two variables and calculate addition and subtraction, respectively.
The data type for your two variable should be float. So if you are using an input function to read your data, you better convert the string type to float. Please see below example:
floatinputenter your value:
After you define your functions, call your functions and print the summation and subtraction values using fprint.
When you are done with your script, please compile it to make sure it is working. Then save it and download it as ipynb format and submit it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
