<filename>datatypes/tuples2.py<gh_stars>10-100
#!/usr/bin/python

# tuples2.py

five = (1, 2, 3, 4, 5)

print ("five[0] : ", five[0])
print ("five[-1] : ", five[-1])
print ("five[-2] : ", five[-2])
print ("five[:] : ", five[:])
print ("five[0:4] : ", five[0:4])
print ("five[1:2] : ", five[1:2])
print ("five[:2] : ", five[:2])
print ("five[:-1] : ", five[:-1])
print ("five[:9] : ", five[:9])

<filename>datatypes/tuples2.py<gh_stars>10-100
#!/usr/bin/python

# tuples2.py

five = (1, 2, 3, 4, 5)

print ("five[0] : ", five[0])
print ("five[-1] : ", five[-1])
print ("five[-2] : ", five[-2])
print ("five[:] : ", five[:])
print ("five[0:4] : ", five[0:4])
print ("five[1:2] : ", five[1:2])
print ("five[:2] : ", five[:2])
print ("five[:-1] : ", five[:-1])
print ("five[:9] : ", five[:9])

#!/usr/bin/python # tuples2.py