Hey guys how would I work around this error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hey guys how would I work around this error

x=input() y=(x*1.8)+32 can't multiply sequence by non-int of type 'float'

22nd Jan 2019, 6:15 AM
Shane Gibson
Shane Gibson - avatar
3 Answers
+ 4
Try this: x = int(input()) y = (x*1.8)+32 print(y) https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2492/
22nd Jan 2019, 6:26 AM
Diego
Diego - avatar
+ 2
Haha simple fix thanks bud
22nd Jan 2019, 6:28 AM
Shane Gibson
Shane Gibson - avatar
+ 2
You're welcome. Happy coding!
22nd Jan 2019, 6:28 AM
Diego
Diego - avatar