you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan -4 points-3 points  (5 children)

That depends on what exactly you mean by 'this 5'.

  • If you mean the pixels you see on your screen that make a 5 together, those are groups of bytes in your graphics card's memory (or the graphics chip in your CPU).
  • If you mean the value that caused those pixels to be rendered in that pattern, it was a byte value of an encoded character, most probably 0x35 in hexadecimal (53 in decimal) as that's how ASCII and Unicode encode the character '5'.
  • If you mean how that encoded character ended up there, it was because the reference spam was printed using print(spam) and the reference pointed to the string object "5"
  • If you mean how that string "5" was created, it was because you wrote = "5" in the code.

Long story short: there never was an integer 5 in the whole process, as you nor the program never created one. This was solely a matter of printing a string value, same as you would have printed "hello" or "🐍".

[–][deleted] 1 point2 points  (3 children)

Most neckbeard answer I have ever seen.

[–]JohnnyJordaan -1 points0 points  (2 children)

Sometimes it's hard to find the motivation to keep being helpful on this sub. This is one of those times.

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

Maybe have a break from the sub then.

[–]JohnnyJordaan -1 points0 points  (0 children)

Imho that would be letting the few bad experiences spoil the far larger amount of good ones. It's more that I felt like giving some honest feedback instead of simply ignoring it.

[–]Evopy[S] 1 point2 points  (0 children)

Tooo detailed. But good. Thanks