# your code goes here
#hero inventory tuple
#create tuple
#print tuple
#count tuple length
#if in tuple prit smth
#check position of item by indexing it
#summon item by its position and print
#print part-slice of tuple by two defined positions
#concantenate 2 tuples
inventory = ('armor',
'rental shield',
'sword', 'sword1', 'sword2', 'sword3')
print inventory
inv1 = ('sword4', 'sword5')
if inv1 not in inventory:
	inventory += inv1
len1 = len(inventory)
len2 = -len(inventory)
print len1
print inventory[len2:len1]
print 'So you have', len1, 'items in your inventory'
print 'If you want to summon an item enter its appropriate number between', len1, 'and', len2
enter1 = int(raw_input('Enter your number here'))
if enter1 >= len2 and enter1 <= len1:
	print inventory[enter1]
if enter1 == 3:
	print inventory[0:3]
raw_input('\n\nP')