title: How do I check if a value from an entry is in a list?
body: <p>I'm trying to make a Pokemon Damage Calculator/Battle Simulator in python. Being moderately experienced in the language, I know most of the jibe, however, I can't seem to figure out <strong>how to retrieve an entry (the users choice of Pokemon) and check if it's in a list.</strong> I will be using this function for a chunk of the script and I'm not sure how to code it.</p>
  
  <p>I've tried a <code>if</code> statement combined with <code>.get</code> but, when I try that, the error <code>TypeError: 'set' object is not callable</code> appears.</p>
  
  <p>Heres my code to show my situation:</p>
  
  <pre><code>from tkinter import *
  
  Pokemon = {"Bulbasaur", "Ivysaur", "Venusaur", "Charmander",
  "Charmeleon", "Charizard", "Squirtle", "Wartortle", "Blastoise",
  "Caterpie", "Metapod", "Butterfree", "Weedle", "Kakuna", "Beedrill",
  "Pidgey", "Pidgeotto", "Pidgeot"}
  
  def begin():
      global battle
      if pokemon1.get() in Pokemon and pokemon2.get() in Pokemon():
        battle = Tk()
        battle.title("Battle")
  
  root = Tk()
  root.title("Select Pokemon")
  root.geometry("600x400")
  
  Label(root, text="Pokemon 1").pack()
  pokemon1 = Entry(root)
  pokemon1.pack()
  
  Label(root, text="Pokemon 2").pack()
  pokemon2 = Entry(root)
  pokemon2.pack()
  
  Button(root, text="Begin!", command=begin).pack()
  
  root.mainloop()
  </code></pre>
  
  <p>Its a bit chunky, but it's not much (I cut down on the size of the list). If I could get an answer that helps me fix this error I would appreciate it. Thanks!</p>