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!
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])
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.
Loading...
Loading...
Using Turtle in Repl.itLoading...
Loading...
Quick Start Guide To TurtleLoading...
Loading...
import turtlefor i in range (4):
turtle.forward(50)
turtle.right(90)
Loading...
Loading...
Tutorials & more info at Python ChallengesChristmas Tree
Using Turtle create a Christmas tree to amaze your family with your coding abilities! Help is available at: Python Challenges Turtle
Quicker Alternative:
Want to do a snowman instead?
Want to do a snowman instead?
Super Hard Challenge: Create Christmas Tree generator that uses seeds to generate the perfect tree for you
Make a Greetings Card you can print
Outside Front
(Upside down)
(Upside down)
Outside back
(Upside down)
(Upside down)
There is an easy way to print cards by folding them in 4. Use turtle to create your very own seasons greetings card. Your front and back will be upside down, so you'll need to be clever when you draw those pictures
Inside Left
Inside Right
On a computer, this code will save your drawing as an eps file which you can use in programs. (Opens in Preview on Mac)
import turtle
for i in range(4):
turtle.fd(100)
turtle.right(90)
ts = turtle.getscreen()
ts.getcanvas().postscript(file="outputfile.eps")
for i in range(4):
turtle.fd(100)
turtle.right(90)
ts = turtle.getscreen()
ts.getcanvas().postscript(file="outputfile.eps")
Secret Santa
Santa is having a bad time at the moment, so we need to help him out.
Can you create a secret Santa present system for him. The idea is that everyone buys 1 present, you get told who you are buying for but NOT who bought for you and you need to make sure everyone who enters their name is included. (See more details about Secret Santa)
Can you create a secret Santa present system for him. The idea is that everyone buys 1 present, you get told who you are buying for but NOT who bought for you and you need to make sure everyone who enters their name is included. (See more details about Secret Santa)
Super Hard Challenge: Create a CSV file to track all your Secret Santas
Greetings for everyone!
You have 100 relatives and everyone expects a personal greetings card. Thankfully this year digital is ok. Can you use Lists to create a personalised set of greetings?
Super Hard Challenge: Create a CSV file you put in a spreadsheet to mailmerge your greetings
Can you pull a combo?
Can you create Combo of Greetings generator and a card, Secret Santa or quiz