title: Does anyone have advice for how to use inputs to determine placement into list?
body: <p>I am writing code to identify if plants are safe or unsafe. In my code, after a user enters their plant, I want to have the user answer questions about the plant. Once they are done answering questions, they can enter another plant and repeat this process.</p>
  <p>My goal is to have each question assigned a value; so, if the user answers &quot;no&quot; to all the questions, the plant is the safest, if the user answers &quot;no&quot; to half of them, it is half as safe. I would append plants with four or more &quot;yeses&quot; to safe and the other plants to &quot;unsafe&quot;. Then, I want to define two more functions that print the safest and least safe plants using the amount of yes and nos.</p>
  <p>Thank you to everyone who commented! I now have so many different ways I could code this. I'm very grateful for all the help!! The new edits reflect the new names of the list.</p>
  <pre><code>def plantidentifier():
    print((&quot;Enter plant or XXX to quit &quot;))
    plant = input().upper()
        print(&quot;Is a mushroom&quot;)
        print(&quot;Does your plant have thorns?&quot;)   
        print(&quot;Is your plant yellow or white?&quot;)
        print (&quot;Are there shiny leaves?&quot;)
        print(&quot;Is your plant umbrella shaped?&quot;)
        Good.append(plant)
        Bad.append(plant)
        return Good, Bad
  
  Good = []
  Bad = []
  print(&quot;Welcome to plant identifier!&quot;)
  print(&quot;Please cafeully consider your plants&quot;)
  print(&quot;Enter the name of your first plant and start answering questions. When done entering plants, enter XXX&quot;)
  plantidentifier() 
  </code></pre>