Login and get codingYou 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
, andQUARTER
to represent each type of coin.Keep calm and code in Python!
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.)