hillbilly charge calculator in python

fail=float(input('Max charges: '))

charge=0


start=float(input('starting charges: '))

rev=float(input('rev charges: '))

run=float(input('run charges: '))


rev_speed=float(input('rev move speed: '))

run_speed=float(input('run move speed: '))


rev_time=float(input('rev time: '))


run_dis=0


charge=charge+start

prt_run_charge=0


prt_rev_charge=(rev*rev_time)

charge=charge+prt_rev_charge

rev_dis=rev_speed*rev_time


while (charge < fail):

  prt_run_charge=prt_run_charge+run

  charge=charge+run

  run_dis=run_dis+9.2


print('charges from rev:' + str(prt_rev_charge))

print('charges from run:' + str(prt_run_charge))

print('dis from rev:' + str(rev_dis))

print('dis from run:' + str(run_dis))

Comments