title: How to make a transfer function in oop
body: <p>Hello guys i want to ask you about how should i make a transfer function for example i want to transfer money .I have two variables bank = BankAccount and i want to transfer money to them if accountNumber for example is not correct I want to print this account number didn't exist can you help me about this idea thank you a lot.Here's what i tried by far and tell me if code is good or i could change something ,Thank you a lot!</p>
  <pre><code>import time
  import datetime
  class BankSystem:
      total_deposit = 0
      total_withdraw = 0
      def __init__(self,name,accountNumber,born,salary):
          self.name = name
          self.accountNumber = accountNumber
          self.born = born
          self.salary = salary
          self.withdraw_history = []
          self.deposit_history = []
          self.account_list = []
      def description(self):
          print(&quot;Name is: &quot; , self.name)
          print(&quot;AccountNumber: &quot; , self.accountNumber)
          print(&quot;Salary: &quot; , self.salary)
      def deposit(self,deposit):
          self.salary = self.salary + deposit 
          self.deposit_history.append(deposit)
          self.total_deposit += 1
      def withdraw(self,withdraw):
          self.salary = self.salary - withdraw
          self.withdraw_history.append(deposit)
          self.total_withdraw += 1
      def transaction_history(self):
          print(&quot;You have withdraw&quot;, self.withdraw_history , &quot;On date:&quot; , datetime.datetime.now())
          print(&quot;You have deposit&quot; , self.deposit_history , &quot;On date:&quot; , datetime.datetime.now())
      def take_loan(self):
          answer = int(input(&quot;Enter the amount of loan who would you like to take between - 100Euros and 300 Euros: &quot;))
          if answer &gt; 300:
              print(&quot;Choose between 100 - 300 Euros not more&quot;)
          else:
              print(&quot;You have taken out for loan, you will pay extra 1.5 from that sum&quot; , answer * 1.5)
      def open_account(self):
          self.account_list.append(self.name)
          self.account_list.append(self.accountNumber)
          self.account_list.append(self.born)
      def see_account(self):
              print(&quot;New Account list&quot; , self.account_list)
      
          
          
  bank = BankSystem(&quot;Bill&quot; , 42919502 , &quot;Massachutes&quot; , 4000)
  bank = BankSystem(&quot;John&quot; , 30503202104 , &quot;Cardiff&quot; , 4000)
  bank.open_account()
  bank.see_account()
  </code></pre>