0
How do I debug this object not callable in python
#This is the code# below https://code.sololearn.com/cseS3S9iJ32g/?ref=app
5 Antworten
+ 1
Thanks👍, let me try it out
0
instead of creating a variable to make your input an integer, just do it as your input.
replace: hours = input("Enter Hours")
with: hours = int(input("Enter Hours"))
hours = int(input('Enter hours: '))
#Remove This Line- input = int(hours)
rate = 10
pay = hours * rate
payOver40hr = hours * (rate +15)
if hours == 40.0:
print(pay)
elif hours > 40.0:
print(payOver40hr)
0
for future reference, if you want to change a string to an int after input instead of getting it as the input, creating a variable of "input" isn't the way.
input = int(hours)
what you would have wanted to do would have been
hours = int(hours)
0
Yippee, it worked. Thanks
0
np