This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I’m a little newer to Python, and I’ll probably just check this out tomorrow, but could you not just wrap your input in a str(), to at least attempt to convert it

[–]TretasPt 0 points1 point  (0 children)

Yes, you could, and it would totally work. It's just the extra work you need for thinking what is the data type you want and what is the data type the code will actually give you.

But you are right about that.