Goroff

u6-14.9

Dec 2nd, 2020
426
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 14.9
  2.  
  3. class User():
  4.     # base
  5.     def __init__(self, email, password, balance):
  6.         self.email = email
  7.         self.password = password
  8.         self.balance = balance
  9.        
  10.     def login(self, email, password):
  11.         return (email == self.email and password == self.password)
  12.  
  13.     def update_balance(self, in_amount):
  14.         self.balance += in_amount
  15.  
  16. # -------------------------------------------
RAW Paste Data