Nov-08-2022, 03:33 PM
Why can't I see the messagebox when input is not a, b, or c? I am sure there is a good reason but I guess I can't find out yet.
Thanks.
Thanks.
from tkinter import* from tkinter import messagebox def math(): while True: data=input("enter a,b or c ") if data=='a': data=5 elif data=='b': data=10 elif data=='c': data=15 else : hi=messagebox.showerror(title="Try",message="Wrong Input ") data=0 print(data) math()