Python Certification Foundation Course
Introduction to Python Assignment
Problem Statement:
Consider yourself to be Sam who is a data scientist. He has been invited as a guest lecturer at
a college to take an introductory session on Python.
Tasks to be performed:
1. Create a list containing squares of numbers from 1 to 10 (HINT: use List
Comprehension).
2. Write a Function to check if year number is a leap year.
3. Write a Function to take an array and return another array that contains the members
of first array that are even.
4. Write a Function that takes 2 arrays and prints the members of first array that are
present of second array. (HINT: use Membership Comprehension)
Intellipaat Software Solutions Pvt. Ltd. Copyright 2011-2020. All Rights Reserved