2
If you do if each one alone and run with else, the calculation is correct. But using both (if and elif) does not recognize the differences and does not display the expected results. There will only be the discount of R $ 7,00 if the price is between the number 23 and the age typed.
idade = int(input('Qual sua idade? '))
preço = float(input('Informe o valor: '))
#Desconto, deve estar entre o número 23 e a idade do cliente.
desconto = float(7)
if preço >= 23:
print('Você terá um desconto de: R${:.2f}'.format(desconto))
elif preço <= idade:
print('Você terá um desconto de: R${:.2f}'.format(desconto))
else:
print('sem desconto')