begin = int(raw_input("nEnter the index number to begin a slice: ")) end = int(raw_input("Enter the index number to end the slice: ")) print "inventory[", begin, ":", end, "]tt", print inventory[begin:end]
Related Scripts with Example Source Code in same category :