print("Inserire il costo del prodotto")
c=float (input())
if c<=50:
    r=50-c
    print(r)
    print("il resto è di",r,"euro")
else:
    print("rinuncio all'acquisto")

Embed on website

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