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 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
+ 1
It worked thanks sarada lakshmi