Skip to content

imranc07/PAT_Task3

Repository files navigation

Q1: You have given a python list [10, 501, 22, 37, 100, 999, 87, 351] your task is to create a two list one which have all the Even numbers and another list which will have all the Odd numbers in it? '''

Q2: Given a python list [10, 501, 22, 37, 100, 999, 87, 351] your task is to count all Prime Numbers and create a new list which contains all the Prime Numbers in it?

Q3: Given a python list [10, 501, 22, 37, 100, 999, 87, 351] Find out how many numbers are there in the given Python list which are Happy Numbers?

Q4: Write a python program to find the sum of first and last digit on an integer.

Q5: You have given a list of N integers which represents the number of Mangoes in a bag. Each bag has a variable number of Mangoes. There are M students in a Guvi Class. Your task is to distribute the Mangoes in such a way that each student gets one bag. The difference between the number of Mangoes and in a bag with maximum Mangoes and Bag with minimum Mangoes given to the student is minimum.

Q6: You have given three lists. Your task is to find the duplicates in the three lists. Write a python program for the same. You can use your own python list.

Q7: Write a program to find the first no-repeating elements in a given list of integers.

Q8: Write a python program to find the minimum element in a rated and sorted list.

Q9: You have given a Python list [10, 20, 30, 9] and a value of 59. Write a Python program to find the triplet in the list whose sum is equal to the given value.

Q10: Given a list [4, 2, -3, 1, 6]. Write a python program to find if there is a sub list with sum equal to Zero?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages