<jupyter_start><jupyter_text><jupyter_code># Idenatify the sublist in the same order
def sublist(lst1, lst2):
   ls1 = [element for element in lst1 if element in lst2]
   ls2 = [element for element in lst2 if element in lst1]
   if ls1 == ls2:
       print("it's a match")
   else:
       print("it's Gone")
sublist([1,2,3],[2,3])
sublist([1,1,5],[1,3,1,5,6,7])
#def function for prime numbers and filter for range 1-2500
def isPrime(x):
   for n in range(2,x):
    if x%n==0:
       return False
    else:
       return True

fltrObj=filter(isPrime, range(2500))
print ('Prime numbers between 1-2500:')
list(fltrObj)
# Capitalization
def cap(lst):
   lst=["hi i am chu","i am in bangalore alone"]
   list_one = map(lambda str:lst.capwords(),lst)
   print(list_one)

cap(lst)
def convert(my_input):
     return list(map(lambda str: my_input.capitalize(), my_input))
     print(my_input)
convert("dijith nair")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13738019169329074, 'fraction_numerical': 0.042598509052183174, 'mean_word_length': 4.222222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '358561', 'license': 'Apache-2.0', 'n_tokens_mistral': 384, 'n_tokens_neox': 359, 'n_words': 99, 'path': 'Assignment_Day5.ipynb', 'repo_name': 'dijith007/Python', 'size': '939'}