title: How to use dictionary in oop to store data
body: <p>i want to ask you i want to store all informations in dictionary for this code but i can't i know that something i did wrong.I like to store informations from Customers if issue take a hourly , monthly or daily it is on BikeRental request bikes what i tried by far is any way?</p>
  <pre><code>class Customers:
      def __init__(self,stock,unique_number,family_rent,salary):
          self.issue_bill = {}
          self.request_bikes = []
          self.unique_number = unique_number
          self.family_rent = family_rent
          self.stock = stock
          self.salary = salary
      def available_bikes(self):
          print(&quot;Unique number is: &quot; , self.unique_number)
          print(&quot;Stock available: &quot; , self.stock)
          print(&quot;Requested bikes at the moment are:&quot;, str(self.request_bikes)[1:-1])
      
      def bike_hourly_basics(self,bike):
          if self.stock &lt; bike:
              print(&quot;Not enough bikes on stock!&quot;)
          else:
              print(&quot;You can rent this bike for 10euro on hourly!&quot;)
              self.stock = self.stock - bike
              
  
              
              
           
      def bike_daily_basics(self,bike):
          if self.stock &lt; bike:
              print(&quot;Not enough bikes on stock!&quot;)
          elif bike == 0:
              print(&quot;Enter positive integer , not zero&quot;)
          else:
              print(&quot;You can rent this bike for 30euro on daily!&quot;)
              self.stock = self.stock - bike
  
      
      def bike_weekly_basics(self,bike):
          if self.stock &lt; bike:
              print(&quot;Not enough bikes on stock!&quot;)
          elif bike == 0:
              print(&quot;Enter positive integer , not zero&quot;)
          else:
              print(&quot;You can rent this bike for 60euro on weekly!&quot;)
              self.stock = self.stock - bike
      
      def family_rent(self):
          if self.family_rent &lt; 3:
              print(&quot;Not enough people for the discount&quot;)
          else:
              print(&quot;Good job , the discount of 3 or more people is: &quot; , self.salary - value )
          
  class BikeRental:
      def __init__(self):
          self.all_accounts = {}
      
      def request_bikes(self,stock,unique_number,family_rent,salary):
          customer = Customers(stock,unique_number,family_rent,salary)
          self.all_accounts[stock,unique_number] = customer 
          for key,value in self.all_accounts.items():
              print(key)
  
  customer = Customers(5 , 40607 , 4 , 5000)
  bike = BikeRental()
  bike.request_bikes(3,50607 , 5 , 6000)
  </code></pre>