Christmas programming task

Instead of writing out the naughty and nice list this year, Santa has decided to digitise the list on his computer. Unfortunately he has been too busy to learn programming so has turned to you to complete his work for him.

Santa needs a program that can check names on the naughty list and has laid out the specifics of the program he would like below.

Create a program that does the following:

  • Asks the user their name
  • Asks the user what they would like for Christmas from a specified list of items EG [Xbox, PS5 etc etc]
  • Displays a specific remark about the item they have chosen
  • Asks the user if they have been naughty or nice this year
  • If they have been naughty, they get shown a pre-populated naughty list with their name on it and the program will exit
  • If they have been nice Santa will ask them if they would like to report anyone for being naughty
  • The user will be able to add as many names as they need to the naughty list.
  • When the user is done they get a cheery farewell from Santa and the program will exit.

Challenge

  • If the user enters the name “Elvis the Elf” they get taken to a secret menu system where Elvis can add, delete or search for names in the naughty or nice list and export the lists as text files.   

Success criteria

  • The program is written using procedures or functions
  • The program uses Python lists or arrays
  • Use of suitable loops where necessary
  • Contains suitable prompts for the user