<jupyter_start><jupyter_text>a tuple is immutable iterable datatype whereas a list is mutable. creation of tuple<jupyter_code># You can't add elements to a tuple. Tuples have no append or extend method.
# You can't remove elements from a tuple. Tuples have no remove or pop method.
# You can find elements in a tuple, since this doesn’t change the tuple.
# You can also use the in operator to check if an element exists in the tuple.
# tuple can be made using () operator
flowers = ("Rose", "Lily", "Iris", "Tulip")
# you cant append list 
flowers.append("Magenta")
# you cant remove the element
flowers.remove("Tulip")
# you cant remove pop()
flowers.pop()
print(flowers)
# Tuples are faster than lists.<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08719346049046321, 'fraction_numerical': 0.0, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '64666', 'license': 'MIT', 'n_tokens_mistral': 224, 'n_tokens_neox': 221, 'n_words': 104, 'path': '09. Python Tuples/01. Advantages of Tuple over List.ipynb', 'repo_name': 'penanrajput/PythonCourseContent', 'size': '734'}