2 comments
Comment actions Permalink

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

 

0
Comment actions Permalink

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.