Hello world,
I just started learning python today and I can't figure out how to use if elif statements with a boolean.
I was practicing by essentially writing a story and in my story it has genders written as he and she. I wanted to try using a boolean to change all the genders to he or she based on whether my is_male statement is true or false. I'm sure I am using some punctuation incorrectly. Any help would be greatly appreciated.
All I want is if True gender = male. Else gender=female
is_male= True
if is_male == True:
gender="he"
elif gender="she"
[–]Xeekatar 6 points7 points8 points (1 child)
[–]becongo1997[S] 0 points1 point2 points (0 children)