comp-data / 2022-2023

The GitHub repository containing all the material related to the Data Science course of the Digital Humanities and Digital Knowledge degree at the University of Bologna (a.a. 2022/2023).
14 stars 4 forks source link

Exercises: 2 #4

Open arcangelo7 opened 1 year ago

arcangelo7 commented 1 year ago

Write the Python class Restaurant

Attributes

menu_items: a dictionary in which each dish on the menu is associated with its price

book_table: a list containing the numbers of reserved tables

customer_orders: a list of dictionaries with the format {'table_number': table_number, 'order': order}

Methods

add_item_to_menu

book_tables

add_customer_order

Perform the following tasks