9/12/25, 1:55 PM Python for Data Science - - Unit 5 - Week 2
Answer Submitted.
X
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
[email protected]
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Python for Data Science (course)
If already
registered, click
to check your
Week 2: Practice Assignment 2
payment status Assignment not submitted
Note : This assignment is only for practice purpose and it will not be counted towards the
Final score
Course
outline 1) Variable ‘a’ is defined as 1 point
a = ‘gOOd moRning’
About NPTEL Command to convert ‘a’ from ‘gOOd moRning’ to ‘Good Morning’ is:-
()
a.upper( )
How does an a.lower( )
NPTEL online a.string( )
course work?
a.title( )
()
No, the answer is incorrect.
Score: 0
Week 0 ()
Accepted Answers:
a.title( )
Week 1 ()
2) Create a list called “Stationery” with the below data 1 point
Week 2 ()
Jupyter setup
Product = ['Pencil', 'Pen', 'Eraser', 'Pencil Box', 'Scale']
(unit? Price= [5, 10, 2, 20, 12]
unit=30&lesson Brand = ['Camlin', 'Rotomac', 'Nataraj', 'Camel', 'Apsara']
=31) Stationery = [Product, Price, Brand]
Sequence_data
The command to add “Notebook” as the first element inside the first level of the
_part_1 (unit?
list “Stationery” is:-
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=30&assessment=167 1/3
9/12/25, 1:55 PM Python for Data Science - - Unit 5 - Week 2
unit=30&lesson Stationery[0].append('Notebook')
=32)
Stationery[0].insert(0,'Notebook')
Sequence_data
Stationery[0][1] = "Notebook"
_part_2 (unit?
unit=30&lesson Stationery[0].extend('Notebook')
=33) No, the answer is incorrect.
Score: 0
Sequence_data
Accepted Answers:
_part_3 (unit?
Stationery[0].insert(0,'Notebook')
unit=30&lesson
=34) 3) The method to clear all the elements from a Set is:- 1 point
Sequence_data
remove( )
_part_4 (unit?
unit=30&lesson discard( )
=35) clear( )
Numpy (unit? delete()
unit=30&lesson
No, the answer is incorrect.
=36) Score: 0
Week 2 :
Accepted Answers:
Lecture slides
clear( )
(unit?
unit=30&lesson 4) Consider the list, 1 point
=37)
Mylist =[‘a’, ‘a’, ‘b’, ‘b’, ‘b’, ‘c’, ‘c’, ‘d’, ‘e’]
Week 2 - FAQs
(unit?
unit=30&lesson The output of the code: Mylist.index(‘d’) is
=38)
7
Week 2
8
Feedback Form
: Python for 4
Data Science!! 6
(unit?
Yes, the answer is correct.
unit=30&lesson
Score: 1
=114)
Accepted Answers:
Quiz: Week 2 : 7
Assignment 2
(assessment? 5) Which of the following python sequence data type is immutable? 1 point
name=168)
list
Practice:
Week 2: dictionary
Practice tuple
Assignment 2
array
(assessment?
name=167) No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
tuple
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=30&assessment=167 2/3
9/12/25, 1:55 PM Python for Data Science - - Unit 5 - Week 2
Week 4 () Check Answers and Submit
Your score is: 1/5
Supporting
material for
Week 4 ()
Download
Videos ()
Problem
Solving
Session -
July 2025 ()
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=30&assessment=167 3/3