确定有多少个数相等。打印该数字(零、二或三)以及一些描述性文本,以告知用户正在打印到屏幕上的内容
这只有时有效,我知道必须有一种更有效的方法,但是自从我刚开始学习 python 以来,我很难想到其他的东西。
#Taking the inputs from the user
x,y,z = input("Enter the three valaues: ").split()
while True:
if x!= y and x!=z:
print("there is no equal numbers")
break
elif x==y or x==z:
print("There are two equals numbers")
break
else
print("There are three equals numbers")