How do I check...

Quote: Originally Posted by Moldz Well al1986 already gave you an answer a few posts back:

IOW, vars() returns a dictionary of the local symbol table. You could check if it contains the symbols character1, character2, ... by replacing the x in the snippet above with the variable name. Check out the built-in functions doc. You don't have to use has_key() though - if "x" in vars():... would work just as "well" (really though, Sane, as people have suggested - don't use it. It will never ever ever be the right way to solve any problem you have)

Posted On: Friday 28th of December 2012 05:27:03 AM Total Views:  172
View Complete with Replies