why python doesn’t calculate the result as per formula I provided
I am working on python, what is wrong with the following code:
try: x, y = input("fraction: ").split("/") result= int(f"{x}* 100/{y}%") if result <= 1: print("E") elif result >= 99: print("F") else: print(result) except (ValueError, ZeroDivisionError): print(x, y)