<jupyter_start><jupyter_text>1.list and its default function<jupyter_code>lst= [1,2,3,4,5,6,7,7888,'meera',3.45]
type(lst)
print(lst)# prints the list
    

lst.append("meet")#add in to list
print(lst)

lst= [1,2,3,4,5,6,7,7888,'meera',3.45]
b=lst.copy()#copies the list
print(lst)
print(b)
lst.index(4)
lst.extend([9,6,5])# add in list
print(lst)
print(lst.count('meera'))#returns the number of time meera appear in list
print(lst.count('6'))
print(lst.count(6))
print(lst.index(6))#gives index number counting starts from 0
print(lst.index('meera'))
print(lst.index(7888))
print(lst.pop())#index not specified
lst= [1,2,3,4,5,6,7,7888,'meera',3.45]
print(lst)
print(lst.pop(3))#index specified
lst.remove(7888)#remove meera from list
print(lst)

lst= [1,2,3,4,5,6,7,7888,'meera',3.45]
lst.reverse()
print(lst)
vowels=['u','a','i','e','o']#sort the vowels
vowels.sort()
print('sorted list:',vowels)
vowels.sort(reverse=True)
print('sorted list(in descending):',vowels)<jupyter_output>sorted list: ['a', 'e', 'i', 'o', 'u']
sorted list(in descending): ['u', 'o', 'i', 'e', 'a']<jupyter_text>DICTIONARY AND ITS DEFAULT FUNCTION<jupyter_code>d1={"name":"meera","f1":"damini","f2":"tanvi","f3":"mauli","f4":"khushi"}
type(d1)

d1.items
d1.get


 d1.values()
    
print(d1.get("name"))# get name
d1["f5"]="neha"
print(d1)
d3 = d1.copy()# make copy of d1
print(d3)<jupyter_output>meera
{'name': 'meera', 'f1': 'damini', 'f2': 'tanvi', 'f3': 'mauli', 'f4': 'khushi', 'f5': 'neha'}
{'name': 'meera', 'f1': 'damini', 'f2': 'tanvi', 'f3': 'mauli', 'f4': 'khushi', 'f5': 'neha'}<jupyter_text>set and its default function st={1,2,3,4,'meera','python',7}print(st)print(type(st))st.add(9)st.update([4,5],{6,7,8})print(st)st.discard('meera')print(st)st.remove('python')print(st)b={1,3,5,7}print(b)st.union(b)print(st &b)st.difference(b)  tuple and its defualt function<jupyter_code>t1=('pysics','chem','maths','biology')
print(t1)
t2=(1,2,3,4)
t3=('a','b','c','d')
print(t1[0])
index=t1.index('chem')
print(t1)
print(t1.count(1))<jupyter_output>('pysics', 'chem', 'maths', 'biology')
pysics
('pysics', 'chem', 'maths', 'biology')
0<jupyter_text>boolean and its default function<jupyter_code>x= 5
y=3
print(bool(x==y))<jupyter_output>False
{'fraction_non_alphanumeric': 0.24730215827338128, 'fraction_numerical': 0.0598021582733813, 'mean_word_length': 9.06787330316742, 'pattern_counts': {'":': 5, '<': 13, '<?xml version=': 0, '>': 13, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '15761', 'license': 'Apache-2.0', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1022, 'n_words': 168, 'path': 'assignment1.ipynb', 'repo_name': 'Meeravanodiya/python-letsupgrade', 'size': '2224'}