Aug-21-2018, 02:20 AM
(This post was last modified: Aug-21-2018, 02:32 AM by ichabod801.)
Hi I'm very new to python and have a problem.
Could someone tell me what I've done wrong thanks.
def main(): x, y = 10, 100 if (x < y): st = "x is less than y" print (st) if __name__ == "__main__": main()It says NameError, name 'x' is not defined.
Could someone tell me what I've done wrong thanks.