0
Hi
Python issue â Hour=input (âenter the hourâ) Rate=input(âenter the rateâ) Pay=Hour*Rate Print (Pay) â This is the code and i got some issue with this saying âconversion str to non int something â Please help me anyone?
2 RĂ©ponses
+ 4
input() is used to read string values..
To read integer or float you need to typecast that as follows.
a = int(input()) #For integers
b = float(input()) #For floating point numbers
+ 1
It worked thanks sarada lakshmi