hour = 1
distance_fee = 5000 
start_pay = 4000
pay = 0

if hour >= 0 and hour <= 4:
    pay = (start_pay + distance_fee) * 12 // 10
else:
    pay = (start_pay + distance_fee)

print(pay)

Embed on website

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