Terrapins Sky
Home
Tutorials
Diary
Works
Sunday, February 26, 2017
[Python][Resolved] can't multiply sequence by non-int of type 'float'
I made some sentence so that read a number from somewhere, and wanted to use that for calculation.
what should do is to ensure numbers used for multiply are in int or float type. In this case, the variable named input is a str.
convert the string to float or int type :
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
No comments :
Post a Comment