title: Is there a way I can assign two different values to a variable?
body: <p>Sorry if the question is worded poorly but I basically want to create an array (not sure if correct terminology) that has the name of a creature in the first column, the name of an object in the second column, and then a number (drop chance) in the third column. Ideally I'd be able to refer to this array using the creature name in order to output the object name and perform calculations using the third column's number.</p>
  <pre><code>
  # create dictionary of boss names with a numerical value attached
  
  boss_name = {
      &quot;1&quot;: &quot;Vindicta and Gorvek&quot;,
      &quot;2&quot;: &quot;Gregorovic&quot;,
      &quot;3&quot;: &quot;Helwyr&quot;,
      &quot;4&quot;: &quot;Twin Furies&quot;
  }
  print(&quot;&quot;) # space
  
  # print the table of bosses (https://stackoverflow.com/questions/27067061/python-print-dictionary-using-column-formatting/43550837)
  for item in boss_name:
      print(item, boss_name[item])
  
  print(&quot;&quot;) # space
  
  boss_input = input(&quot;Please enter the number corresponding to the boss you would like to calculcate the drop rates for: &quot;)
  #boss_input = re.sub(r'[a-z,.]','',boss_input.lower()) # converts input into numbers only - this line is redundant?
  boss_input_integer = int(boss_input) # converts the input into an integer
  
  # input error check
  print(len(boss_name))
  input_error = True # set default state
  
  while input_error == True: # when an invalid input is made, this section will loop continuously until a valid one is entered
  
      if boss_input_integer in range (1,len(boss_name)+1):
          print(f&quot;You have selected {boss_name.get(boss_input)}&quot;)
          input_error = False # The input is valid, therefore no input error was made
      else:
          print(f&quot;Invalid input. Please choose a number between 1 and {len(boss_name)}&quot;) # Error message for when a number is entered that is greater than the number of entries in the boss list
          boss_input = input(&quot;Please enter the number corresponding to the boss you would like to calulcate the drop rates for: &quot;) # allows the user to input a new value
          boss_input_integer = int(boss_input)
      
  
  
  # Function 1: Boss pet chance calculator
  
  pet_item_info = {
      &quot;Vindicta and Gorvek&quot; : &quot;Imbued blade slice&quot; : &quot;1/2000&quot;,
      &quot;Gregorovic&quot; : &quot;Faceless mask&quot; &quot;1/1000&quot;
  }
  </code></pre>
  <p>So when I enter for example 2, the first dictionary takes that value as &quot;Gregorovic&quot;. Then it would check the array (under Function 1) for where Gregorovic is listed in the first column, and would then output Faceless mask and 1/1000, for example &quot;You have selected Gregorovic; Faceless mask has a drop rate of 1/1000&quot;. I know I can't use a library while using 3 columns, but I find it easier to visualise my problem.</p>
  <p>Any help would be appreciated, thanks!</p>