title: How to check password in dict list?
body: <p>I just started to use PyCharm and I want to make program which will check username and account, but I am beginner and I don't know what should I do.</p>
  
  <pre><code>bank = {"Akim": [1234, 98], "Argo": [7432, 87], "Anton": [1236, 70], "HaCK": [10101, 0]}
  '''Here I have my list with names(keys) and password(first value) and amount of money on their account(second value)'''
  
  #I want to have 2 ways of solving this problem
  def open_2 ():
      name1=input("name")
      passw=input("pass")
      #I want to make Python to check is there account with specific username and password.
      if ((name1)[passw]) in bank:
          print("you passed")
      else:
          print("mo")
          #But it gives me error.
  
  
  
  def open():
      name = input("PLease write your name")
      p= input ("Please write your password")
      op = (bank.get(name))
      if op != None:
          # I want to make check point here but it doesn't work at all
          q= (bank.get(name[p]))
          #Here is the main problem but I have no idea what is the problem
          if q == (bank.get(name[0])):
              print ("You successfully logged on")
      else:
          print("Password or name is incorrect.Please try again, or if you don't have account you can register now for free.")
          n= input("Please type yes, if you want to, or no if you don't want to:")
          if n=="yes":
              register()
      return ()
  </code></pre>