π» Activity 4.2: Solving an Old School Punishment With a New Trick#
In high school, the teacher wants to give the class clown a lesson. The teacher tells the class clown to write βI will not text jay in spanish class.β 100 times. The teacher removes all possibilities of copy and paste from your computer. Write a script using dynamic programming concepts that still makes it easy to output the required text the appropriate number of times.
βI will not hide 250 rubber ducks in math class.β (250 times)
βI will not cheat off of Sarah and Tom in ENGR131 class.β (101 times)
Your function goes here
...
βI will not text jay in spanish class.β (100 times)
...
βI will not hide 250 rubber ducks in math class.β (250 times)
...
βI will not cheat off Sarah and Tom in ENGR131 class.β (101 times)
...