Python For Data Science
Python For Data Science
Note: next operation must be applied on the list generated from the
previous operation.
1. What is data science? Enlist and explain the factors that affect the speed of
execution of a data science project.
2. Enlist and explain any three Python libraries used for data science.
P.T.O.
1
Q.2 [A] Short Questions [03]
1. Using a control structure, display your name, enrollment no, and DOB 01
stored in a list.
Factorial of 1 is 1
2 Define an abstract class Shape with an abstract area method. Derive a class 04
Square from Shape class. Define its constructor and the area method.
Derive another class Rectangle from the Square. Define its constructor and
pass on the value of the side to the square class. Display the area of one
square and one rectangle objects.
OR
2 Define a class having a class attribute counter which should count the 04
number of objects created. This class should have three instance attributes
one public, one private and one protected. Besides that it should have a
static method which will accept the name (your name) from the user and
greet the user by name.
*************
P.T.O.