Teach me please. Why it doesn't accept entrys correctly? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
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 šŸ‡®šŸ‡³