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

Поділитися
Вставка
  • Опубліковано 1 чер 2024
  • Learn how to count to 1 million in Python while understanding the concepts of for loops, while loops, and recursion.
    Get a free $200 DigitalOcean server here 👉 ttt.do/DigitalOcean1000000 (affiliate link)
    Find more at tonyteaches.tech
    Check out my vlog channel @TonyFlorida
  • Навчання та стиль

КОМЕНТАРІ • 2

  • @paulhildmann8392
    @paulhildmann8392 Рік тому +1

    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!

  • @erichzann2966
    @erichzann2966 5 місяців тому

    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?