Skip to content

Instantly share code, notes, and snippets.

View joan0fsnark's full-sized avatar
:octocat:

Alena joan0fsnark

:octocat:
View GitHub Profile
@joan0fsnark
joan0fsnark / restaurant_app.py
Last active November 15, 2021 00:31 — forked from codecademydev/script.py
Codecademy: You’ve started position as the lead programmer for the family-style Italian restaurant Basta Fazoolin’ with My Heart. The restaurant has been doing fantastically and seen a lot of growth lately. You’ve been hired to keep things organized. [Creates menus, calculates bills, and has Franchise and Business classes to manage expansion]
class Menu:
def __init__(self, name, items, start_time, end_time):
self.name = name
self.items = items
self.start_time = start_time
self.end_time = end_time
def __repr__(self):
return self.name + ' menu is available from ' + str(self.start_time) + ' - ' + str(self.end_time) + "."