1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
melisa1 [442]
3 years ago
11

Define function multiply(), and within the function: Get user input() of two strings made of whole numbers Cast the input to int

() Multiply the integers and return the equation with result as a str()
Computers and Technology
1 answer:
fredd [130]3 years ago
7 0

Answer:

def multiply():#defnition of a function multiply.

   return str(int(input("enter the vale of first whole number: "))*int(input("Enter the value of the second whole number: "))) # it is used to take the two value and then print the multiplication of that value after converting it into integer.

Explanation:

  • The above code is in python language, which holds the function multiply. The user can use this function when he calls the function.
  • The first line of the function will render a message to enter the two whole numbers and then take the two values from the user.
  • The value is get converted into an integer value.
  • Then the value is getting multiplied.
  • Then the value is returned with the help of return function after converting it into a string value.
  • The input function is used to take the value, int function is used to convert the value in integer,'*' is used to multiply, and str function is used to convert the multiplication into a string value.
You might be interested in
What should you do before cleaning the top of a storage battery and rinsing it with fresh water?
Montano1993 [528]
D. Discharge the battery completely
6 0
3 years ago
Big Chungus is god. prove me wrong.
lisabon 2012 [21]

Answer:

who is Big chungus???

Believe in Lord Buddha !

6 0
3 years ago
Assume that you are testing the Orders database introduced in Watt (2014) - Appendix C. Discuss the problems and possible conseq
madreJ [45]

Answer:

129 \frac{2}{?} 23.4. \div 164 \times 5y1 + . \\ .00487ggh

6 0
4 years ago
Im trying to type in answers but where the text box is supposed to be it says unlock answers. What does that mean?
borishaifa [10]
You may have to pay or sign up for the text box or if it is a computer program you may need to get the full version of the software if it is a trial
3 0
3 years ago
Compare the encryption algorithms found in s-tools: idea, mdc, des, and 3des.
grin007 [14]
Are their answer chocies 

3 0
4 years ago
Other questions:
  • On what level has social media connected us to one another?
    11·1 answer
  • If a full disk encryption (FDE) password is forgotten, what can be incorporated to securely store the encryption key to unlock t
    13·1 answer
  • What is Napoleon's friend's name? From the Napoleon Dynamite movie.
    14·1 answer
  • What are the benefits of transferable skills check all the boxes that apply
    6·2 answers
  • A/an<br> controls the flow of data between a computer and the network.
    8·1 answer
  • What does the following code print?
    15·1 answer
  • Are Proxy Servers illegal if im using it to surpass Facebook or something because it is banned
    12·1 answer
  • In which of the following cases is the application of a nested loop not justified? When comparing two lists of integers When for
    14·1 answer
  • I've been stuck on these two basic javascript assignments for an embarrassingly long time. The teacher refuses to help me and th
    13·1 answer
  • Any idea how to make my simple python projects such as guess the number, mad libs, etc. even better?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!