def boleto_150(minimo, maximo): """ (int, int) -> int """ return (maximo - minimo) * 150 def boleto_200(minimo, maximo): """ (int, int) -> int """ return (maximo - minimo) * 200 def boleto_500(minimo, maximo): """ (int, int) -> int """ return (maximo - minimo) * 500 print("Plata en boletos de 150 = ", boleto_150(6673, 7000)) print('Plata en boletos de 200 = ', boleto_200(2868, 3000)) print('Plata en boletos de 500 = ', boleto_500(2816, 2941)) def total_voletos(boleto_150, boleto_200, boleto_500): """ (int, int, int) -> int """ return (boleto_150 + boleto_200 + boleto_500) print(total_voletos) Petroleo = input("Gasto en Petroleo: ") print(Petroleo) Planilla = input("Gasto en Planilla: ") print(Planilla) Viatico = input("Gasto en Viatico: ") print(Viatico) Minutos = input("Gasto en Minutos: ") print(Minutos)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question