Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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