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!
#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


Messages In This Thread
Help me write a Christmas Program! - by marienbad - Dec-23-2018, 12:53 PM
RE: Help me write a Christmas Program! - by ethware - Dec-24-2018, 09:08 AM
RE: Help me write a Christmas Program! - by marienbad - Dec-26-2018, 12:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  write a program which prints the day in english ben1122 10 4,021 Jul-25-2021, 05:55 PM
Last Post: ben1122
  Christmas Tree (Why is it like that ?) GaivSo 2 1,661 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,080 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,547 Nov-23-2019, 04:38 AM
Last Post: larkypython
  Christmas and other occasions GalaxyCoyote 4 2,546 Jul-18-2019, 09:51 PM
Last Post: GalaxyCoyote
  Would Python be a good langue to write this program in? MikeLG 4 3,972 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