Answer to Question #17352 in Python for Ariel Landron

Question #17352
Fill in the missing function definitions for this program:
**def main():
welcome()
x,y = userInput()
d = calculate(x,y) `
displayResults(x,y,d)

main()**

**I am not sure what to do**

**def welcome():
print("Hello, world")
def userinput():
x,y=eval(input("Please, enter two numbers: "))

def calculate(x,y):
dif=(x)-(y)


def displayr(x,y,d):
print(x,y,d)
def main():
welcome()
x,y=userinput()
d=calculate(x,y)
displayr(x,y,d)
main()**
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS