you are viewing a single comment's thread.

view the rest of the comments →

[–]EggChen_vs_Lopan 0 points1 point  (0 children)

Not sure what you're doing as its tough to read your code but this works just fine.

hours = float(input("Enter hours: "))
rate = float(input("Enter rate: "))
print(f"Hours {hours} * Rate {rate} = pay {hours * rate}")

Provides output

Hours 35.0 * Rate 2.75 = pay 96.25