Python 程序没有运行

Python 程序没有运行,python,jupyter-notebook,Python,Jupyter Notebook,我正在尝试运行一个代码,但它不起作用,如果有错误,我似乎找不到 def question3(): x= input("Enter the first value:") y= input("Enter the second value:") z= input("Enter the third value:") if x==y==z: print("All three inputs have equal values" + x) elif x==y: print("x and y h

我正在尝试运行一个代码,但它不起作用,如果有错误,我似乎找不到

def question3():
x= input("Enter the first value:")
y= input("Enter the second value:")
z= input("Enter the third value:")
if x==y==z:
    print("All three inputs have equal values" + x)
elif x==y:
    print("x and y have equal values" + x)
elif x==z:
    print("x and z have equal values" + x)
elif y==z:
     print("y and z have equal values" + y)
else:
    print("All three inputs have different values")

你调用函数question3吗?如果有正确的标识,它会为我运行。你们使用Python3吗?格式是错的,缩进了。因为您没有指定您将遇到的错误,所以这大概就是您要问的问题。
def question3():
    x= input("Enter the first value:")
    y= input("Enter the second value:")
    z= input("Enter the third value:")
    if x==y==z:
        print("All three inputs have equal values" + x)
    elif x==y:
        print("x and y have equal values" + x)
    elif x==z:
        print("x and z have equal values" + x)
    elif y==z:
         print("y and z have equal values" + y)
    else:
        print("All three inputs have different values")
    return