[Solved] This if statement is not even working correctly


This is a problem with your indentation. You can learn about indentation here: https://docs.python.org/2.0/ref/indentation.html and on the web. To get your code working do the following:

string = "A"
secret_word = "Apple"

if string in secret_word:
    print("Good!")
else:
    print("Bad...")

4

solved This if statement is not even working correctly