I am no admin but you should post your code in Python tags.
Your code if-clause will always evaluate to True therefore you get always if branch.
Why it evaluates to True? You have or condition. If either part of or is True then if-clause is True. String evaluates to True if it is not empty. String is False then it is empty. As 'ankara' is not empty string it always truthy.
You can remedy it by writing correctly:
And of course, else-clause misses print statement.
And if there is more than one question you should use function.
Your code if-clause will always evaluate to True therefore you get always if branch.
Why it evaluates to True? You have or condition. If either part of or is True then if-clause is True. String evaluates to True if it is not empty. String is False then it is empty. As 'ankara' is not empty string it always truthy.
>>> if 'ankara': ... print('this is true') ... this is true
You can remedy it by writing correctly:
if turkeycapital == "Ankara" or turkeycapital == "ankara":But more commone way is to convert either lower or uppercase:
if turkeycapital.lower() == 'ankara':This way you'll cover all caps and typos as well.
And of course, else-clause misses print statement.
And if there is more than one question you should use function.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.