title: Python - Ask for input multiple times til a certain input disables it
body: <p>I am trying to write a function that makes a list.
  The function requires user input.
  The function will prompt for input in which user input an element.
  That element will be added to the list.
  When user input a certain element i.e. a string, the function returns the list.</p>
  
  <p>So when I run the function, it should be something like this:</p>
  
  <pre><code>Input an element: 100
  Input an element: 200
  Input an element: 300
  Input an element: Stop
  [100, 200, 300]
  </code></pre>
  
  <p>So far this is my progress:</p>
  
  <pre><code>def list_maker():
      """Make a list from input"""
      result = []
      def main():
          element = input("Input an element: ")
          if element == "Stop":
              print(result)
          else:
              main()
      main()
  
  list_maker()
  </code></pre>