Python Forum
Help me write a Christmas Program!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me write a Christmas Program!
#1
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
		
Reply
#2
The xmas module exists in pypi. Now you need to write modules advent, noel, yuletide and winter!
Reply
#3
finished yeat?
Reply
#4
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  write a program which prints the day in english ben1122 10 3,914 Jul-25-2021, 05:55 PM
Last Post: ben1122
  Christmas Tree (Why is it like that ?) GaivSo 2 1,607 Dec-17-2020, 03:44 PM
Last Post: GaivSo
  I have an index error inline 76 but I write the program in a way that cant reach tha abbaszandi 2 2,013 Nov-13-2020, 07:43 AM
Last Post: buran
  How to write a script to execute a program need passing additional input? larkypython 2 2,471 Nov-23-2019, 04:38 AM
Last Post: larkypython
  Christmas and other occasions GalaxyCoyote 4 2,466 Jul-18-2019, 09:51 PM
Last Post: GalaxyCoyote
  Would Python be a good langue to write this program in? MikeLG 4 3,905 Oct-02-2017, 09:51 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020