python - TypeError: float() argument required to be a string or a number -
I am in grade 11 computer science in my high school, and I am just starting in Python. I should do a function called Type error: The float () argument must be string or a number so they all have computepay that will ask the user for their name, their wages, and the hours of that week and automatically calculates the total including any overtime, and there will be no wrong input Includes. I have created different functions for all inputs, but when I plug it in my computepay function it tells me:
name = getname () wages = (When) = meet () none
d Ef getname (): return input "what is your name?") # Input of def meldage :) wage = input ("hello there! How much money do you earn per hour?") # Input return float (wages) Def gethours ): Hours = input ("Thank you, how many hours did you work this week?") Return float (hours)
Comments
Post a Comment