title: Python IDLE TypeError: int object not subscriptible
body: <p>I am making a code that makes a map (not visible), and you can move in it.</p>
  
  <p>I have been working on this code for a week now.</p>
  
  <p>It has a TypeError.</p>
  
  <pre><code>import map
  def basicRealm():
       player=[0,0]#this is you
       Home=[0,0]
       Shops=[2,7]
       Park=[8,2]
       locations = [Home, Shops, Park]
       desternation=Park
       RealmSize = grid(10)
       choice = input("Move north, south, east, or west?[north/south/east/west]")
       no = int(input("Number of spaces to move: "))
       if choice=='north':
          axis=y
       elif choice=='south':
          axis=y
       elif choice=='east':
          axis==x
       elif choice=='west':
          axis=x
       else:
          pass
       nothing=''
       if choice=='south' or choice=='east':
          no = 0 - no
       else:
          pass
       you_are_here = move(no, player, axis)
  
  
  
    basicRealm()
  </code></pre>
  
  <p>And my map module to run it is :</p>
  
  <pre><code>def atDesternation(location):
      global desternation
      if desternation==location:
          return True
      else:
          return False
  
  
  def atLocation(Object,locations):
      pos = position(Object)
      for i in locations:
          if pos==i:
              return i
  else:
      return None
  
  def position(Object):
       pos = (Object[0], Object[1])
       return pos
  
  def grid(size):
       size = ListRange(0, size)
       return size
  
  def move(spaces, thing, axis):
          here= position(thing)
          pos = here[axis] + spaces
          return pos
  </code></pre>
  
  <p>The Output is as follows:</p>
  
  <pre><code>Move north, south, east, or west?[north/south/east/west]north
  Number of spaces to move: 1
  Traceback (most recent call last):
  File "C:\Users\lewis\Desktop\Map1.py", line 35, in &lt;module&gt;
     basicRealm()
  File "C:\Users\lewis\Desktop\Map1.py", line 29, in basicRealm
     print(position(you_are_here))
  File "C:\Users\lewis\Desktop\map.py", line 13, in position
     pos = (Object[0], Object[1])
  TypeError: 'int' object is not subscriptable
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>How do I solve this error? Please help.
  I am newish to Python and find it very hard to slove Errors.</p>