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!
13 out of 13 users completed this Bite.
Will you be the 14th person to crack this Bite?
Resolution time: ~54 min. (avg. submissions of 5-240 min.)