avatar Bite 377. Coins on the Table

You start with 1,001 pennies lined up on a table. Starting at the beginning each time, first you replace every other coin with a nickel. Next, you replace every third coin with a dime. Finally, you replace every fourth coin with a quarter.

Learner's Task

Write a function that returns a sequence of all the coins on the table. Use the labels PENNY, NICKEL, DIME, and QUARTER to represent each type of coin.

Keep calm and code in Python!

Login and get coding
go back Intermediate level
Bitecoin 3X

8 out of 9 users completed this Bite.
Will you be Pythonista #9 to crack this Bite?
Resolution time: ~30 min. (avg. submissions of 5-240 min.)

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help