0

Teach me please. Why it doesn't accept entrys correctly?

I have 6 python code lines that run in the online environment repl.it, but try/except doesn't work. Here that code works so differently. Here is it: tarifa = int(input("Introduzca el valor de la hora: ")) horas = int(input("¿Cuántas horas trabajó? ")) try: print("Devengado: "+ str(tarifa*(horas+(horas-40)*1.5))) except: print("Los datos introducidos deben ser números")

1st Apr 2020, 2:34 PM
Hernán López
1 Antwort
0
In need to give all input at once as line by line separating in Sololearn... Ex: 5 7 Run this program, it shows how to input to console in Sololearn. Hope it helps you understand SoloLearn console behaviour.. https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
1st Apr 2020, 2:54 PM
Jayakrishna 🇮🇳