title: Are there a way to use while loop function as a list tracker? and mix with FileI/O?
body: <pre><code>to_do_list = []
  while True:
      in_listed = input('item list:')
      
      if in_listed == 'quit':
          break
          
      if in_listed[0] == 'add':
          num1 = int(user_li[-1])
          to_do_list.append(num1 - 1)
          to_do_list.append(num1 - 1)  
      
          print(to_do_list)
  
      elif in_listed[0] == 'rm':
          num1 = int(user_li[1])
          to_do_list.pop(num1 + 1)
          to_do_list.pop(num1 + 1)
      
          print(to_do_list)
      
      elif in_listed[0] == 'ls':
          for i in range(len(to_do_list)-1):
              print(f'{i} {to_do_list[i]}, {to_do_list[i+1]}')
  </code></pre>
  <p>It works, but I wanted to add an item using <code>add</code> and then put an item with the date. For example, when I input <code>add 5/5 buy milk</code>, then the output would be <code>['5/5', 'buy milk']</code>.</p>