# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Assignment 1 day 5

# write a program to identify sub list[1,1,5] is there in the given list in the same order,if yes print "ite match" if no then print "its gone" in function.

### sublist identification
input_string=input("Enter a main_list number:")
main_list=input_string.split()
print("Main list is:" ,main_list)
input_string1=input("enter a sub_list number:")
sub_list=input_string1.split()
print("Sub list is:" ,sub_list)
flag=0
if(set(sub_list).issubset(set(main_list))):
    flag=1
if(flag):
    print("Its match")
else:
    print("its gone")


# # Assignment 2 Day 5

# Make a function for prime number and use filter to filter out all the prime number from 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))

# # Assignment 3 day 5

# Make a lambda funtion for captilizing the whole sentence passed using arguments
# and map all the sentences in the list, with the lambda function

# +

out=map(lambda x: x.upper(), ['hey this is nikitha,i am in tiptur'])
output=list(out)
print(output)
# -



StarcoderdataJupyterScriptsDedupFiltered