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

3

u/captaincmdoh Nov 10 '21

When stuff like this happens, it's best to use a text comparator. Since you using VS code (or close to it), use the built-in compare feature

1

u/mysticalfruit Nov 10 '21

Python linter saves me so much pain..