[Solved] Getting UnboundLocalError: local variable ‘age’ referenced before assignment error


       age = "" 
        try:
            age = self.age_var.get()
        except ValueError:
                showinfo("Error:", "Please Enter A Number In Age Field.")

Have a look Here

9

solved Getting UnboundLocalError: local variable ‘age’ referenced before assignment error