<jupyter_start><jupyter_text><jupyter_code>#ASSIGNMENT1<jupyter_output><empty_output><jupyter_text>LIST<jupyter_code>lst=[100,99,123456,20.567]
lst
lst.append("priya")
lst
lst.index("priya")
lst.count("123456")
lst
lst.clear()
lst
lst=[12,35,96,56,23,67,8]
lst
lst.sort()
lst
lst.insert(5,60)
lst<jupyter_output><empty_output><jupyter_text>DICTIONARY<jupyter_code>Dict = {"Englishmarks":85, "computer": "90", "PCM": [79, 80, 95], "COLLEGE": "STJOSEPH"}
Dict
Dict["COLLEGE",]
Dict.keys()
Dict.values()
Dict['electronic']='99'
Dict
Dict['PCM']
'Englishmarks' in dict<jupyter_output><empty_output><jupyter_text>SETS<jupyter_code>set1 = {"pop", "rock", "soul", "hard rock", "rock", "R&B", "rock", "disco"}
set1
Days={"Monday", "Friday", "Wednesday", "Saturday", "Tuesday","Monday","Friday"}
Days
Days.add("Sunday")
Days
Days.remove("Monday")
Days
"Monday" in Days
Days={"sunday","monday","tuesday"}
Months={"january","February","march"}
Days,Months
Set1={1,5,7,9,6,4,5,9,6,4,3,5,6}
Set2={6,4,7,9,5,4,9,3,2,0,9,7,5}
Set1.union(Set2)
Set1.intersection(Set2)
Set2.intersection(Set1)
set(Set1).issuperset(Set2)
set(Set1).issubset(Set2)<jupyter_output><empty_output><jupyter_text>TUPLE<jupyter_code>tup1=(9,6,5,7,4,3,2,1,10,25,14,13,12,19,18,17,16,15)
tup1
tup1.sort()
tup1<jupyter_output><empty_output><jupyter_text>STRINGS<jupyter_code>str="q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h" "i","j","j","k","l","z","x","c","v","b","n","m"
str
print(len(str))<jupyter_output>27
{'fraction_non_alphanumeric': 0.2591093117408907, 'fraction_numerical': 0.08434547908232119, 'mean_word_length': 15.119565217391305, 'pattern_counts': {'":': 4, '<': 24, '<?xml version=': 0, '>': 24, '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': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '510096', 'license': 'Apache-2.0', 'n_tokens_mistral': 770, 'n_tokens_neox': 698, 'n_words': 73, 'path': 'Day2assignmentb7.ipynb', 'repo_name': 'priya-saw-1999/letsupgrade-python-b7', 'size': '1482'}