![]() |
Help me write a Christmas Program! - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Help me write a Christmas Program! (/thread-14901.html) |
Help me write a Christmas Program! - marienbad - Dec-23-2018 Merry Christmas to all of you! Okay, so this idea came into my head and I started writing it out, it is just a bit of fun, it is meant as a laugh and I hope you find it amusing. Anyhow, I only got this far and ran out of inspiration, so am looking to y'all to help me expand on this theme and idea. Please note, I am not looking for the code to actually do anything, just carry on the humour and bring a smile to people over xmas! import advent import noel import yuletide from winter import FestiveGreetings from xmas import Dinner, Presents class XmasDay(RegularDay): def __init__(self, waketime = too_early, alcohol_content = too_much, television = usual_garbage, tree = decorated): self.waketime = waketime self.alcohol_content = alcohol_content self.television = television self.tree = tree self.dinner = Dinner(Turkey, Roast Potatoes, Parsnips, Stuffing, Gravy, Carrots, CranberrySauce=maybe) def open_presents(self, a_present, disappointment=total): pass def drink(self, a_drink, eggnog=mandatory_even_if_you_hate_it): pass def slob_out_in_front_of_telly(self, full_belly=True, tele=christ_what_is_this_rubbish_im_watching): pass def pass_out_drunk_on_sofa(self, alcohol_content=overdose_level, snoring=obligatory): pass RE: Help me write a Christmas Program! - Gribouillis - Dec-23-2018 The xmas module exists in pypi. Now you need to write modules advent, noel, yuletide and winter! RE: Help me write a Christmas Program! - ethware - Dec-24-2018 finished yeat? RE: Help me write a Christmas Program! - marienbad - Dec-26-2018 Added a BoxingDay Class to the code! class BoxingDay(RegularDay): def __init__(self, hungover=True, leftovers_for_dinner=True, shopping_for_bargains=are_you_kidding_my head_hurts) self.hungover = hungover self.leftovers_for_dinner = leftovers_for_dinner self.shopping_for_bargains = shopping_for_bargains def bargain_hunting(self, shopping): if self.hungover: shopping=none else: shopping=an_almighty_pain_in_the_ass def drink_more_alcohol(self, gin=True): drinking = True while drinking: if not hungover: feel_better = True else: feel_better = False def watch_tv(self, repeats=unreal_amount): while tv=on: watching_while_pisssed = True if programme=shite: still_watch_it = True |