Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Print Countdown | Automating Tasks with Python
Automating System Tasks with Python: A Beginner's Guide
Section 1. Chapter 22
single

single

bookChallenge: Print Countdown

Swipe to show menu

Task

Swipe to start coding

Write a function that prints numbers from 5 down to 1, pausing for one second between each number.

  • Use a loop to iterate from 5 down to 1.
  • Print each number in the sequence.
  • Pause for one second after printing each number.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 22
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt