0% found this document useful (0 votes)
6 views4 pages

Python For Data Science Week 2 Assignment

The document outlines the details for Week 2 of the 'Python for Data Science' course, including assignment questions and submission guidelines. It provides a list of questions related to Python data structures and operations, along with a due date for assignment submission. Students are encouraged to submit their answers multiple times before the final deadline.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Python For Data Science Week 2 Assignment

The document outlines the details for Week 2 of the 'Python for Data Science' course, including assignment questions and submission guidelines. It provides a list of questions related to Python data structures and operations, along with a due date for assignment submission. Students are encouraged to submit their answers multiple times before the final deadline.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

7/26/24, 10:39 PM Python for Data Science - - Unit 5 - Week 2

([Link] ([Link]

23mca08@[Link] 

NPTEL ([Link] » Python for Data Science (course)


Click to register
for Certification
exam
Week 2 : Assignment 2
([Link]
Assignment not submitted Due date: 2024-08-07, 23:59 IST.
If already 1) Which of the following object does not support indexing? 1 point
registered, click
to check your tuple
payment status list
dictionary
set

Course
outline 2) Given a NumPy array, arr = [Link]([[[1, 2, 3], [4, 5, 6], [7, 8, 9]]]), what is the 1 point
output of the command, print(arr[0][1])?

About
NPTEL () [[1 2 3]
[4 5 6]
How does an [7 8 9]]
NPTEL [1 2 3]
online
[4 5 6]
course
work? () [7 8 9]

Week 0 ()

Week 1 ()

Week 2 ()

Jupyter setup
(unit?
unit=30&lesso
n=31)

[Link] 1/4
7/26/24, 10:39 PM Python for Data Science - - Unit 5 - Week 2

Sequence_dat 3) What is the output of the following code? 1 point


a_part_1
(unit?
unit=30&lesso
n=32)

Sequence_dat
a_part_2
(unit?
unit=30&lesso
n=33)

Sequence_dat
a_part_3
(unit?
unit=30&lesso
n=34)

Sequence_dat
a_part_4
[2, 3, 4, 5]
(unit?
unit=30&lesso [0 1 2 3]
n=35) [1, 2, 3, 4]

Numpy (unit? Will throw an error: Set objects are not iterable.
unit=30&lesso
n=36) 4) What is the output of the following code? 1 point

Week 2 :
Lecture slides
(unit?
unit=30&lesso
n=37)

Week 2 -
FAQs (unit?
unit=30&lesso
n=38)

Practice:
Week 2:
Assignment 2
(Non Graded)
(assessment?
name=143)

Quiz: Week 2
: Assignment
2
(assessment?
name=147)

Download
Videos ()

Books ()

Text
Transcripts

[Link] 2/4
7/26/24, 10:39 PM Python for Data Science - - Unit 5 - Week 2

()

5) Which of the following code gives output My friend’s house is in Chennai? 1 point

6) Let t1 = (1, 2, “tuple”, 4) and t2 = (5, 6, 7). Which of the following will not give any 1 point
error after the execution?

[Link](5)

x = t2[t1[1]]

t3 = t1 + t2

t3 = (t1, t2)

t3 = (list(t1), list(t2))

7) Let d = {1 : “Pyhton”, 2 : [1, 2, 3]}. Which among the following will not give the error 1 point
after the execution?

d [2].append(4)

x = d[0]

d[“one”] = 1

d. update(‘one′ : 2)

8) Which of the following data type is immutable? 1 point

[Link] 3/4
7/26/24, 10:39 PM Python for Data Science - - Unit 5 - Week 2

list
set
tuple
dictionary

9) student = {‘name’: ‘Jane’, ‘age’: 25, ‘courses’: [‘Math’, ‘Statistics’]} 1 point


Which among the following will return
{‘name’: ‘Jane’, ‘age’: 26, ‘courses’: [‘Math’, ‘Statistics’], ‘phone’: ‘123-456’}

[Link]({‘age’ : 26})
[Link]({‘age’ : 26, ‘phone’: ‘123-456’})
student[‘phone’] = ‘123-456’
[Link]({‘age’ : 26})
None of the above

10) What is the output of the following code? 1 point

[‘M’, ‘A’, ‘H’, ‘E’, ‘S’, ‘H’]


[‘m’, ‘a’, ‘h’, ‘e’, ‘s’, ‘h’]
[‘M’, ‘a’, ‘h’, ‘e’, ‘s’, ‘h’]
[‘m’, ‘A’, ‘H’, ‘E’, ‘S’, ‘H’]

You may submit any number of times before the due date. The final submission will be
considered for grading.
Submit Answers

[Link] 4/4

You might also like