<jupyter_start><jupyter_text>list<jupyter_code>list = [1,2,3.5,7]
list
#list comprehention

list = [1,2,3,4,5]
a=[]
for x in range(1,50,2):
    a.append(x)
# a= [x for x in range(1,50,2)]
print(a)
a[2] = 8
print(a)
list.append("Athira")
list.append(1)
list
#1.Hetrogenouse
#2.ordered and indexed
#3. Mutable 
#4. Hetrogenouse
#5. Allow Duplicate<jupyter_output><empty_output><jupyter_text>Tuple<jupyter_code>t = (1,5,3,4,6,4,"hai")
t
t[3]
t[1]=6
#ordered and indexed
#Allow duplicates
# Hetrogenouse
#Immutable<jupyter_output><empty_output><jupyter_text>Set<jupyter_code>s={2,1,3,4}
s
s.add(8)
s
s.add("hai")
s
#1. not ordered and not indexed
#2. no duplicates
#3. Hetrogenouse
#4. Immutable<jupyter_output><empty_output><jupyter_text>Dictionary<jupyter_code>d={"name":"athira","age":45,"gender":"female"}
d["name"]="amma"
d
#No duplicates for key value
#indexed but not ordered
#hetrogenouse
#mutable<jupyter_output><empty_output><jupyter_text>String<jupyter_code>a="Amma"
a[0]
a[0]="t"
#immutable
#indexed<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17743490838958534, 'fraction_numerical': 0.04628736740597879, 'mean_word_length': 8.436363636363636, 'pattern_counts': {'":': 3, '<': 21, '<?xml version=': 0, '>': 21, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '422450', 'license': 'Apache-2.0', 'n_tokens_mistral': 493, 'n_tokens_neox': 476, 'n_words': 83, 'path': 'Python Collections.ipynb', 'repo_name': 'Athiraudayakumar/An-Introduction-to-Machine-Learning-and-AI', 'size': '1037'}