Untitled

 avatar
user_6738772
python
2 years ago
1.1 kB
3
Indexable
Never
class FoodCulture():
    def __init__(self):
        self.name = ""
        self.cuisine = ""
        self.description = ""
        self.ingredients = ""
        self.sp = " "
    
    def set_name(self, name):
        self.name = name

    def set_cuisine(self, cuisine):
        self.cuisine = cuisine
    
    def set_description(self, description):
        self.description = description

    def set_ingredients(self, ingredients):
        self.ingredients = ingredients

    def get_name(self):
        return self.name

    def get_cuisine(self):
        return self.cuisine

    def get_description(self):
        return self.description

    def get_ingredients(self):
        return self.ingredients


    def __str__(self):
        return str(self.name) + str(self.sp) +str(self.cuisine) + str(self.sp) +str(self.description) + str(self.sp) +str(self.ingredients)   

    def __eq__(self, culture):
        if self.name == culture.name and self.cuisine == culture.cuisine and self.description == culture.description and self.ingredients == culture.ingredients:
            return True
        else:
            return False