Mofeoluwa

Untitled

Apr 1st, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. class Chocolate():
  2.     def __init__(self,cacao_content):
  3.         self.cacao_content = cacao_content
  4.     def sweet(self,content=30):
  5.         cacao_content = 30
  6.         return cocao_content
  7.     def semisweet(self,content=50):
  8.         cacao_content = 50
  9.         return cocao_content
  10.     def bittersweet(self,content=70):
  11.         cacao_content = 70
  12.         return cocao_content
  13.     def bitter(self,content=99):
  14.         cacao_content = 99
  15.         return cocao_content
  16.  
  17. sade = Chocolate()
  18. print(sade.sweet())
Advertisement
Add Comment
Please, Sign In to add comment