I'm new here so please be understanding, also I'm not a native speaker so sorry for my English.
I’m writing the code and I need a solution which checks what user’s entered. I show You my code.
Input can't be the string because a,b and c are the coefficients of function
Could You help me?
while True:
    a1 = input("(podaj wartość współczynika ax^2) a = ")
    try: 
        a1 = int(a1) or a1 = float(a1)
        break
    except ValueError:
        print("Wpisałeś jakiś dziwny znak, nie postąpiłaś/eś zgodnie z instrukcją")
while True:
    b2 = input("(podaj wartość współczynika bx) b = ")
    try: 
        b2 = int(a1) or b2 = float(a1)
        break
    except ValueError:
        print("Wpisałeś jakiś dziwny znak, nie postąpiłaś/eś zgodnie z instrukcją")
while True:
    c3 = input("(podaj wartość współczynika c) c = ")
    try: 
        c3 = int(a1) or c3 = float(a1)
        break
    except ValueError:
        print("Wpisałeś jakiś dziwny znak, nie postąpiłaś/eś zgodnie z instrukcją")
os.system("pause")
 
    