I want to create an if-condition, but I'm not sure how to do it... I would like, that if the else-condition is true, it prints my message. How can I do that?
That's my recent try:
And that's the error I get:
That's my recent try:
1 2 3 4 5 6 7 8 9 10 |
y = 'lol' if y = = True : print ( 'y ist wahr!' ) elif y = = False : print ( 'y ist nicht wahr!' ) else : print ( 'y ist weder wahr noch nicht wahr' ) if else = = True : print ( 'Ich habe es, denke ich, verstanden' ) |
Error:if else == True:
^
SyntaxError: invalid syntax
I'm a starter, so it's probably easy to solve for you professionals 