Question: Run the following program, with inputs q = 3 4 . 5 and r = 2 1 . 0 , then show what would be

Run the following program, with inputs q =34.5 and r =21.0, then show what would be printed?
def solve(a, b):
if (a > b):
C =31
else:
C=11
return (c /10)
q = eval(input("number1"))
r = evalinput("number2"))
if q<=r
s= solve (r,q)
else:
s = solve(q,r)
prints %2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!