a = input("enter your first name ")
for i in range(len(a)):
for space in range(len(a)-i):
print(end=' '*len(a))
for j in range(2*i+1):
print(a,end = '')
print()
print()
if a == 'Allahyar' or 'allahyar':
print(a+ ' is a boomer')
elif a != 'Allahyar' or 'allahyar':
print(a+' has been sent to the pyramid realm')
in this code the if statement executes no matter what and it completely ignores the elif statement. any idea why?
a == 'Allahyar' or a == 'allahyar'ora in ['Allahyar', 'allahyar']. Or even simplera.lower() == 'allahyar'. This is because how conditions are evaluated in your expression.