The snippet below is from a much bigger program. The part of the code with the two asterisk around it is the bit I would like to change. What I want to do is make this part of the code skip past the print command below in the first if-statement. If there is another way to do this please mention it. I use repl.it but I can't seem to make or or and boolean statements work so I just use if statements. If anyone can help me with either of my problems I would be really grateful.
gender = input('What is your gender (boy/girl):')
if gender != 'boy':
if gender == 'girl':
**print('Ignore below')**
print('You have an interesting gender, the program may be weird later on.')
Aucun commentaire:
Enregistrer un commentaire