I (poorly) simulated the infinite monkey theorem in python

the infinite monkey theorem goes as follows: a monkey hitting random keys on a typewriter, given an infinite amount of time, will at some point type out the entire works of William Shakespeare, along with every other possible combination of characters. It's one of the best examples of the nature of infinity - so I decided to put it to the test using my limited python knowledge and my laptop. there is a very good chance that I messed up some of the maths and the coding tutorial part of this video, so please don't take it as fact. If you notice any mistakes let me know! SOURCES, LINKS & OTHER INTERESTING TIDBITS romeo and juliet:
python code: coming soon!

Смотрите также