title: Python SMS store program using class and methods - has_been_viewed status
body: <pre><code>from datetime import datetime
  
  class sms_store:
      store = []
      read = []
  def add_new_arrival(self,number,time,text):
      sms_store.read.append(len(sms_store.store))
      sms_store.store.append(("From: {}, Recieved: {}, Msg: {}".format(number,time,text)))
  def delete(self,i):
      try:
          del sms_store.store[i]
      except IndexError:
          print("Index is out of range. Cannot delete")
  def message_count(self):
      return print("Amt of messages in inbox: {}".format(len(sms_store.store)))
  def viewall(self):
      print(sms_store.store)
  def get_unread_indexes(self):
      #### ###################################I need help for this method.
  def get_message(self,i)
      print(sms_store.store[i])
  ### tests ####
  time = datetime.now().strftime('%H:%M:%S')
  my_inbox = sms_store() #instantiate an object 'store' for class
  my_inbox.add_new_arrival("12345",time,"Hello how are you?") #instance of store object
  my_inbox.add_new_arrival("1111111",time,"BYE BYE BYE")
  my_inbox.viewall()
  my_inbox.msgcount()
  </code></pre>
  
  <p>Thanks for viewing this.</p>
  
  <p>This is what I need to do:</p>
  
  <pre><code>my_inbox.add_new_arrival()
  </code></pre>
  
  <p>When adding a new message, its has_been_viewed status is set False.</p>
  
  <pre><code>my_inbox.get_unread_indexes()
  </code></pre>
  
  <p>Returns list of indexes of all not-yet-viewed SMS messages</p>
  
  <pre><code>my_inbox.get_message(i)**
  </code></pre>
  
  <p>Return (from_number, time_arrived, text_of_sms) for message[i]
  Also change its state to "has been viewed".
  If there is no message at position i, return None</p>
  
  <p>Please help me on those above methods!?</p>
  
  <p>Thank you so much!</p>