<jupyter_start><jupyter_text>QUESTION 1<jupyter_code>list1 = [1,3,5,7,3,8,3,4,6,3,2,4,7,9,4,3,2,2]
k = int(input("input a number to find that how many times it has occured in the given list:- \n")) 
list1.count(k)
print(k, "occurs", list1.count(k), "times")<jupyter_output>input a number to find that how many times it has occured in the given list:- 
4
4 occurs 3 times<jupyter_text>I<jupyter_code>list3 = ["192.168.10.9","192.168.10.4","192.168.10.11","192.168.10.35",]
list3.sort()
print(list3)
def func1 (x):
    i=int(x.split(".")[3])
    return i
list3.sort(key=func1)
print(list3)<jupyter_output>['192.168.10.4', '192.168.10.9', '192.168.10.11', '192.168.10.35']<jupyter_text>II<jupyter_code>list4 = [1,2,3,0,2,3,0,1,24,0,1,3,1,0,1,21,0,1,2,0,45]
list4.sort()
m=int(list4.count(0))
print(list4[m:]+list4[:m])<jupyter_output>[1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 21, 24, 45, 0, 0, 0, 0, 0, 0]<jupyter_text>III<jupyter_code>list1 =[(10,4),(90,3),(9,1),(10,4),(9,5)]
def func2(x):
    x[0]+x[1]
    return x
list1.sort(key=func2)
print(list1)<jupyter_output>[(9, 1), (9, 5), (10, 4), (10, 4), (90, 3)]
{'fraction_non_alphanumeric': 0.24456521739130435, 'fraction_numerical': 0.17753623188405798, 'mean_word_length': 5.949685534591195, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '661131', 'license': 'Apache-2.0', 'n_tokens_mistral': 654, 'n_tokens_neox': 562, 'n_words': 101, 'path': 'DAY 3 ASSIGMENT 1 , 2, 3.ipynb', 'repo_name': 'PRAWIN392/LETSUPGRADE---ADVANCE-PYTHON-AND-DJANGO---B1', 'size': '1104'}