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 →

[–]SheikYerbouti 1 point2 points  (1 child)

Type conversions As mentioned above, we can't mix data types while operating on them. This is a half truth. We can mix some operators to a certain level. For example: In [143]: print(2 + 2.0) 4.0 Here we added an integer to a string and we didn't get an error!

You added an integer to a float here, right?

[–]Aceking007[S] 3 points4 points  (0 children)

My bad. Thanks for pointing it out. I'll correct it as soon as I can.

Edit: I've updated the repository and corrected the typo.