pptx, 361.92 KB
pptx, 361.92 KB
txt, 1.14 KB
txt, 1.14 KB
txt, 1.81 KB
txt, 1.81 KB

This is a Christmas activity in which students are asked to generate the verses of the “Twelve Days of Christmas” (Partridge in a pear tree) Carol. The relevant data is given as lists, so they must NOT actually write any of the words. There is a link in the Power Point to a Trinket with the code, have them remix. I have also put the code on here and a direct link to the trinket. Feel free to reuse. If using the code directly you will need to change the file extension from txt to py or just copy and paste. Trinket is https://trinket.io/python/7ab15d025d41
The Gift(x,y) function isn’t efficient, but I use it as a discussion exercise and to remind students how the loop works in it.

Creative Commons "Sharealike"

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have downloaded this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.