why does this not work?

Completed

0
2 comments

can the community help me as i am new to python coding

 

0

The question isn't related to PyCharm. It's better to post such questions on Python-related forums.

In your example, is_male is a string, not boolean, which is why you can check if it's True or False.

For example, check with if is_male == "True":

0

Please sign in to leave a comment.