11th Aug 2021, 12:41 AM
Sacar
Sacar - avatar
3 odpowiedzi
+ 4
typo at line 10
11th Aug 2021, 12:46 AM
Gordon
Gordon - avatar
0
If you input only 2 values, input() will give EOF before 'earning' can be initialized What you can do is getting rid of the loop, calling the function without 'earning' inside the except block and putting an else block in which you call the function with all three arguments
11th Aug 2021, 1:06 AM
Angelo
Angelo - avatar
11th Aug 2021, 1:34 AM
Sacar
Sacar - avatar