Question: how could i refactor this? x = 5 value = input ( Enter a number: ) y = int ( value ) if
how could i refactor this?
x
value inputEnter a number:
y intvalue
if x y:
printfx is less than y
elif x y:
printfx is equal to y
else:
printfx is more than y
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
