<jupyter_start><jupyter_text>TupleTupuls are similar to list but the value cannot be changed after creating the tupul. All te operattions in tupuls are similar to the list operations  Indexing![title](images/list_indexing.PNG)  Operations in Tuple<jupyter_code>#define a tuple
numbers = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
#Get length of the tuple
print(len(numbers))
#Get the index of a element
print(numbers.index(12))
#Count how many times a element is repeted
print(numbers.count(12))
#prints complete list
print(numbers)             
#prints first element of the list
print(numbers[0])          
#prints elements starting from 3rd to 5th
print(numbers[2:5])        
#prints elements starting from 3rd to last
print(numbers[2:])         
#prints the elements of string from 3 to 7 skipping one element. 
#This is extended slice syntax. The general form is [start:stop:step].

print(numbers[3:7:1])
#reverse a tuple
print(numbers[::-1])
#Repete tuple
print(numbers * 2)<jupyter_output>(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
{'fraction_non_alphanumeric': 0.11813186813186813, 'fraction_numerical': 0.07417582417582418, 'mean_word_length': 4.52020202020202, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '490638', 'license': 'Unlicense', 'n_tokens_mistral': 445, 'n_tokens_neox': 377, 'n_words': 144, 'path': 'Day1/g__tuple_example.ipynb', 'repo_name': 'pash20/python-training', 'size': '1092'}