Generation

generate functionTue, 21 Feb 2023

Create a class restuarant in def function take admin and user details

# Create a class called Restaurant class Restaurant: def __init__(self,restaurant_name,cuisine_type): self.restaurant_name=restaurant_name self.cuisine_type=cuisine_type def describe_restaurant(self): print("Restaurant Name: "+self.restaurant_name) print("Cuisine type: "+self.cuisine_type) def open_restaurant(self): print("Restaurant is open.") restaurant=Restaurant("Pizza Point","Pizza") print(restaurant.restaurant_name) print(restaurant.cuisine_type) restaurant.describe_restaurant() restaurant.open_restaurant()

Questions about programming?Chat with your personal AI assistant