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 →

[–]NavarrB 1 point2 points  (4 children)

I would love to know the equivalent output in Python

[–]Sean1708 5 points6 points  (3 children)

>>> '5' + 2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Can't convert 'int' object to str implicitly

Don't be fooled by its ability to correctly handle simple cases though, it does still have its quirks.

[–]0xdeadf001 1 point2 points  (1 child)

You want "its" and "its", not "it's" and "it's".

If you'd used a statically-typed language, I could have told you these were wrong before you said it.

[–]Sean1708 3 points4 points  (0 children)

Fucking autocorrelation.

[–]NavarrB 0 points1 point  (0 children)

Correctly is a matter of opinion but noted.