Book Creator

Christmas Coding Fun

by James Abela

Cover

Loading...
Christmas Coding Adventure
Loading...
Welcome!
Welcome to this special festive Christmas Coding Book. I've put together some special challenges on a festive theme for you to have a go at. Pick what you'd like to do and share your creations!
Christmas spice:
Choose 🌶️ for beginner level
Choose 🌶️🌶️ bit more difficult for experienced coders
Rock Hard 🌶️🌶️🌶️ for the best of the best
Super Hard is 🦸only
Outmanoeuvre Scrooge
Scrooge is a terrible employer! You are paid by the line of code and you need cash for Christmas gifts, so how are you going to get as much as possible? You've been asked to write one measly line saying, "Bah Humbug!". How can you do it in as many lines as possible? Every line HAS to do something, no comments. Even Scrooge knows that much about coding.

Hint: You might want to get Python to write Python!
🌶️
Mr Abela kindly provided you with a very helpful program to countdown to the most important day of the year... His birthday! However you might want to change the date to something else such as new year.
import datetime
MrABirthday = datetime.date(2021, 8, 14) - datetime.date.today()
MrABirthday = str(MrABirthday).split(",")
print(MrABirthday[0])
🌶️
Screentime Allocation
Your household has managed to score a PS5, but only 1 and so now the children always argue as to how much time they get. Make a timer that givens an equal amount of time for each sibling.
🌶️
Christmas Quiz
Everyone loves a Christmas quiz! Can you make a quiz that gives out seasonal questions or a topic of your choice?
🌶️🌶️
Super Hard Challenge: Create a quiz that has a question editor which saves the questions.
PrevNext