<jupyter_start><jupyter_text>**Name:** <NAME>**Roll_No:** 19CSE035**Sec:** C **Q1)** Create a list in python and find the mean and median of the list without using inbuilt function<jupyter_code>li = [12, 35, 18, 9, 56, 24]
sum=0
for x in li:
  sum += x
mean = sum/len(li)
print('Mean of list is:  ',  mean)
median = 0
if len(li) % 2 == 0:
  m1 = li[len(li)//2]
  m2 = li[len(li)//2 - 1]
  median = (m1 + m2)/2

else:
  median = li[len(li)//2]

print('Median of list is: ', median)<jupyter_output>Mean of list is:   25.666666666666668
Median of list is:  13.5<jupyter_text>**Q2)** Create a list in python. Find the mode of the list without using built-in funcion.<jupyter_code>li = [2, 3, 1, 1, 6, 2, 5]
freq = {}
for x in li:
  freq.setdefault(x, 0)
  freq[x] += 1

mode = [k for k, v in freq.items() if v == max(list(freq.values()))]
if len(mode) == len(li):
  print('No mode found')
else:
  print(mode)<jupyter_output>[2, 1]<jupyter_text>**Q3)** Create a list in python . Find the second smallest no. & second highest number in the list.<jupyter_code>li = [12, 35, 18, 9, 56, 24]
li.sort()
print('Second Smallest number is: ', li[1])
print('Second Highest number is: ',li[-2])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.173841059602649, 'fraction_numerical': 0.06291390728476821, 'mean_word_length': 4.256521739130434, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '440035', 'license': 'MIT', 'n_tokens_mistral': 543, 'n_tokens_neox': 483, 'n_words': 157, 'path': 'Assignmen_1.ipynb', 'repo_name': 'Sambit1708/DMDW_Lab', 'size': '1222'}