#code
wallet=5000
computer_price = 1000

# le prix de l'ordinateur est inferieur à 1000€
if computer_price<=wallet or computer_price > 1000:
    print("L'achat est possible")
    wallet -= computer_price
else:
    print("L'achat est impossible,vous n'avez que{}€".format(wallet))

print(wallet)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: