why does this not work?

已完成

0

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

请先登录再写评论。