Set d anything but empty value meaning false at line 5, for example:
d = "My value is True"
Then reconsider the variable names and read the PEP8 to prepare for the future.
pyTony
pyMod
6,308 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26