Advertisement
Temitop

Untitled

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