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?

23rd May 2021, 2:09 PM
shubham
shubham - avatar
2 Respostas
+ 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
23rd May 2021, 2:13 PM
sarada lakshmi
sarada lakshmi - avatar
+ 1
It worked thanks sarada lakshmi
23rd May 2021, 4:20 PM
shubham
shubham - avatar