+ 1
[SOLVED] These if, elif, else statements are not working.
im trying to make this code so that. When i input a letter, it comes up a pixel art equivent. But but when i input any letter. it comes up with the equivent for A. any ideas? https://code.sololearn.com/cFPFjvwDsXPr/?ref=app
2 Antworten
+ 2
The boolean conditions are the problem here. You want az == "a" or az == "A". My python is a bit hazy now, but any non zero value in a boolean statement evaluates to true, so this elif will always be satisfied. It's a mistake I remember making myself :)
+ 2
thx it works now