Python Forum

Full Version: Help me write a Christmas Program!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
		
The xmas module exists in pypi. Now you need to write modules advent, noel, yuletide and winter!
finished yeat?
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