usage = 250 
pay = 0
total = usage - 200

if usage <= 200:
    pay += (usage * 100)
else:
    usage -= total
    pay +=  (usage * 100)
    pay += (total * 200)

print(pay)

Embed on website

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