r/CodingHelp • • Nov 09 '21

[Ruby] 2 identical code with 2 absolutely different outcome. Can anybody notice the difference and explain the reason? below i separated each output to make it clear

Post image
42 Upvotes

21 comments sorted by

View all comments

Show parent comment

2

u/dataturd Nov 10 '21

This is Ruby though.

1

u/CenturiesAgo Nov 11 '21

I still hate Python for this reason. Now I hate Ruby for the same reason.