just started learning python3, to write code in atom as follows:
inp = input ("Enter Hours:")
hours = float (" inp")
inp = input ("Enter Rate:")
rate = float (" inp")
print ("rate")
print (" hours")
pay = Rate * Hours
print ("pay")
wants to assign a value to inp, but inp is considered to be string. The running result is
Enter Hours:35
Traceback (most recent call last):
File "assign1.py", line 3, in < module >
hours = float("inp")
ValueError: could not convert string to float: "inp"
what is the problem?
Thank you very much!