This is a lab I am absolutely stuck on. The purpose is to take 2 numbers entered by a user and flip the display of them.
The example input provided is 3, 8. A function is needed for this assignment and some parts were prefilled and can t be changed.
def swap_values(user_val1, user_val2):
val1 = user_val2
val2 = user_val1
return val1, val2
if __name__ == __main__ :
input_val1 = input(int())
input_val2 = input(int())
print(*swap_values(input_val1, input_val2))
产出如下:
008 3
我不能说,我为什么在一开始就跑了零。