Project: Repeat Yourself

Practice to create a custom loop.

We'll cover the following

Your turn: Create a custom loop

Try changing the range() or the condition in your loop. Some ideas are:

  • Idea 1: Print your name 3 times.

  • Idea 2: Count by 2s.

  • Idea 3: Create a loop—runs—until the user types “stop.”

Let’s look at an example below:

Get hands-on with 1400+ tech skills courses.