<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Data Structures
Data structures are structures which can hold some data together. In other words, they are used to store a collection of related data. There are three built in data structures in Python - list, tuple and dictionary. 
List
List is an ordered data or collection of item. They are enclosed with brackets. You mau add or remove or search items from, to, or in the list.
Step1:  Tuple
Tuple is just like list, but one cannot modify typles. So you must be careful when defining a tuple. You can define tuple with parenthessis (in contrast of list that used brackets).
Step2:  Sequences
The sequences such as strings, list, and tuples are special. You may have indexing operation to fetch a data from it and you also could take "some slice" of it.
Step3:  Dictionary
A dictionary is like an data base where you can find some data based only a "key". As in database, a key must be unique. While the previous type using brackets and parenthesis, the dictionary using a curly brackets. The following example taken from A Byte of Python.
Step4:  With it yo can see that if we can identify the name, we can get the other content of the fields. Now look at the following example (Learn Python the Hardway). We can also adding another stuff into our dictionary by dictionary['key']='value'.
Also read this following example for your train of thought before taking exercise in the next chapter.
<ASSISTANT_TASK:>
Python Code:
import sys
fishes = ["teri", "kakap", "tongkol"]
items = (" sword"," halberd"," axe"," knife"," blade")
for fish in fishes:
    print("ini ikan "+fish)
for item in items:
    print(item)
print(fishes[0])
print(items[-1])
del(fishes[-1])
for fish in fishes:
    print("ini ikan "+fish)
Explanation: Data Structures
Data structures are structures which can hold some data together. In other words, they are used to store a collection of related data. There are three built in data structures in Python - list, tuple and dictionary. 
List
List is an ordered data or collection of item. They are enclosed with brackets. You mau add or remove or search items from, to, or in the list.
End of explanation
name = "John"
age = 21
cars = "Nissan GTR"
years = 2018
print("My name is %s" % name)
print("Now, I am %d years old" % age)
print("I ride a %s %d" % (cars, years))
Explanation: Tuple
Tuple is just like list, but one cannot modify typles. So you must be careful when defining a tuple. You can define tuple with parenthessis (in contrast of list that used brackets).
End of explanation
pii = "3.141592653589793238462643"
fishes = ("teri", "kakap", "tongkol")
# Get a data
print(pii[0])
print(pii[-2])
print(pii[-3])
print(fishes[2])
# Slice
print(pii[10:15])
print(fishes[1:2])
Explanation: Sequences
The sequences such as strings, list, and tuples are special. You may have indexing operation to fetch a data from it and you also could take "some slice" of it.
End of explanation
#!/usr/bin/python
# Filename: using_dict.py
# 'AB' is short for 'A'ddress'B'ook
AB = {         'Swaroop'   : 'swaroopch@byteofpython.info',
'Larry'     : 'larry@wall.org',
'Matsumoto' : 'matz@ruby-lang.org',
'Spammer'   : 'spammer@hotmail.com'
}
print("Swaroop's address is %s" % AB['Swaroop'])
# Adding a key/value pair
AB['Guido'] = 'guido@python.org'
# Deleting a key/value pair
del AB['Spammer']
print('\nThere are %d contacts in the address-book\n' % len(AB))
for name, address in AB.items():
    print('Contact %s at %s' % (name, address))
if 'Guido' in AB: # OR AB.has_key('Guido')
    print("\nGuido's address is %s" % AB['Guido'])
Explanation: Dictionary
A dictionary is like an data base where you can find some data based only a "key". As in database, a key must be unique. While the previous type using brackets and parenthesis, the dictionary using a curly brackets. The following example taken from A Byte of Python.
End of explanation
cities = {'CA':'San Francisco','MI':'Detroit','FL':'Jacksonville'}
cities['NY'] = 'New York'
cities['OR'] = 'Portland'
def find_city(themap, state): 
    if state in themap:
        return themap[state]
    else:
        return "Not found."
    
cities['_find'] = find_city
while True:
    print("State? (ENTER to quit)")
    state = input("> ")
    
    if not state:
        break
    
    # this line is the most important ever! study!
    city_found = cities['_find'](cities, state)
    
    print(city_found)
Explanation: With it yo can see that if we can identify the name, we can get the other content of the fields. Now look at the following example (Learn Python the Hardway). We can also adding another stuff into our dictionary by dictionary['key']='value'.
Also read this following example for your train of thought before taking exercise in the next chapter.
End of explanation
<END_TASK>