This was a great article for illustrating how the process actually works!
https://www.freecodecamp.org/news/how-bitcoin-mining-really-works-38563ec38c87/
I am curious why when I ran this code, it stopped when the nonce reached 124,426,422; and not when it got to 2,083,236,893 as Satoshi Nakomoto did.
Thanks for sharing this easy-to-follow guide.