3 Ways to Count to 1,000,000 in Python (for, while, recursion)

preview_player
Показать описание
Learn how to count to 1 million in Python while understanding the concepts of for loops, while loops, and recursion.

Check out my vlog channel @TonyFlorida
Рекомендации по теме
Комментарии
Автор

Tony, I noticed that you "spun up" an Ubuntu droplet on Digital Ocean. Is it possible to add a graphical interface like Gnome or XFCE to Ubuntu in the droplet? If that is possible, could you create a tutorial or point me in a direction to do so? Thanks, I enjoy your videos!

paulhildmann
Автор

I've been trying to figure out how to get python to count to a user supplied number, like 1, 000, 000 and was able to do that (with while and for loops); however, after several billion to a trillion+, the single cpu that python uses takes a long, long time to do that. Is it possible to use multiprocessing to spread the count load over several or all cpus?

erichzann