a=0if(a==0):print("a is 0")elif(a>0):print("a is greater than 0")else:print("a is less then 0")
Match Case
# Get the input value from the uservalue=int(input("Enter a value: "))# Use match case to check the valuematchvalue:case0:print("The value is zero.")case_ifvalue>0:print("The value is positive.")case_:print("The value is negative.")