7/21/24, 9:16 PM Python for Data Science - - Unit 4 - Week 1
([Link] ([Link]
23mca08@[Link]
NPTEL ([Link] » Python for Data Science (course)
Click to register
for Certification
exam
Week 1 : Assignment 1
([Link]
Assignment not submitted Due date: 2024-08-07, 23:59 IST.
If already 1) What is the output of the following code? 1 point
registered, click
to check your
payment status
Course
outline
About
NPTEL () 36
121212
How does an 123
NPTEL
Error: Invalid operation, unsupported operator ‘*’ used between ‘int’ and ‘str’
online
course
work? () 2) What is the output of the following code? 1 point
Week 1 ()
Introduction to
Python for
Data Science
-1
(unit?
unit=18&lesso -2
n=19) -1.28
Introduction to 1.28
Python (unit?
3) 1 point
[Link] 1/4
7/21/24, 9:16 PM Python for Data Science - - Unit 4 - Week 1
unit=18&lesso Consider a following code snippet. What is a data type of y?
n=20)
Introduction to
Spyder - Part
1 (unit?
unit=18&lesso
n=21)
Introduction to
int
Spyder - Part
2 (unit? float
unit=18&lesso str
n=22)
Code will throw an error.
Variables and
4) Which of the following variable names are INVALID in Python? 1 point
Datatypes
(unit?
1 variable
unit=18&lesso
n=23) variable 1
variable1
Operators
(unit? variable#
unit=18&lesso
n=24) 5) While naming the variable, use of any special character other than underscore(_) 1 point
will throw which type of error?
Setup Guide
(unit?
Syntax error
unit=18&lesso
n=25) Key error
Value error
Week 1:
Lecture slides Index error
(unit?
unit=18&lesso 6) Let x = “Mayur”. Which of the following commands converts the ‘x’ to float datatype? 1 point
n=26)
str(float,x)
Week 1-FAQs
(unit? [Link]()
unit=18&lesso float(x)
n=27)
Cannot convert a string to float data type
Quiz: Week 1
: Assignment 7) Which Python library is commonly used for data wrangling and manipulation? 1 point
1
(assessment? Numpy
name=146)
Pandas
scikit
Math
[Link] 2/4
7/21/24, 9:16 PM Python for Data Science - - Unit 4 - Week 1
8) Predict the output of the following code. 1 point
12.0
12
11.667
11
9) Given two variables, j = 6 and g = 3.3. If both normal division and floor division 1 point
operators were used to divide j by g, what would be the data type of the value obtained from the
operations?
int, int
float, float
float, int
int, float
10) Let a = 5 (101 in binary) and b = 3 (011 in binary). What is the result of the following 1 point
operation?
3
7
5
1
You may submit any number of times before the due date. The final submission will be
considered for grading.
Submit Answers
[Link] 3/4
7/21/24, 9:16 PM Python for Data Science - - Unit 4 - Week 1
[Link] 4/4