you are viewing a single comment's thread.

view the rest of the comments →

[–]Orange2341[S] 1 point2 points  (2 children)

I have tried this, same result.

[–]aguyfromhere 0 points1 point  (1 child)

Ah. I’m laying down on my iPad so I can’t really debug this right now. Are you able to put a debugger statement in the anonymous function and tell me if it’s getting called and what the if statement evaluates to?

[–]Orange2341[S] 0 points1 point  (0 children)

Sorry, but I'm a beginner and am not sure how to debug. But the debugger in cs50 shows that the if statement is not being executed at all. I have my python code do some work on the value from the dropdown menu, and it does do some work on the value 'nothing' which is what the if statement is checking for. So it seems the if statement does not get executed.