title: How to find specific value from index?
body: <p>Let's say that <code>input(fag) == informasjonsvitenskap</code> like the value in <code>list(FagKode)</code>, if that is true i want it to print the values in karak that has element in relation to INFO, like INFO100,INFO132 and INFO233. And if <code>input(fag)</code> is økonomi i want it to print the values in karak the has the code ECON.</p>
  
  <p>i am new to python and please tell me if i dont explain it well.</p>
  
  <p>My next question will be that i only will print elemtents related to the exact value, like if <code>input(emnenivå) == 100</code>, only INFO100 AND INFO132 will print, and if <code>input(emnenivå) == 200</code> will only INFO233 be printed,</p>
  
  <pre><code>emner = ['INFO100','INFO132','INFO233']
  FagKode = [['informasjonsvitenskap','INFO'],['økonomi','ECON']]
  karak = [['INFO100','C'],['INFO132','B'],['INFO233','C'],['ECON218','A']]
  
  
  def start():
      global meny
      global fag
      meny = int(input('Tast inn ønsket valg (press 0 for meny): '))
  
      if meny == 1:
        valg_fag = input('Press Enter for å velge fag/emner (Skriv "alle" for å vise alle fag/emner)\n: ')
  
      if meny == 1 and valg_fag == 'alle':
        for i in karak:
          print(*i)
  
      elif meny == 1 and valg_fag == '':
        fag = input('- Fag: ')
        emnenivå = int(input('- Nivå: '))
        try:
          if fag in FagKode[0] and emnenivå in range(1,1000):
            ???????
            ???????
          else:
            print('Du har gjort noe feil!')
        except ValueError:
            print('NEI')
  
  start()
  </code></pre>
  
  <p>Thanks for help in advance  :)</p>