NPTEL Python for Data Science Assignment 1 Solutions July 2023 – Hello everyone, in this blog, we will provide you the solution for assignment 1 of “NPTEL Python for Data Science” August assignment. We will try our best to provide you all the correct answers, but you confirm this answer according to your own and submit the “NPTEL Python for Data Science “.
Disclaimer – We recommend you to complete your NPTEL Python for Data Science Assignment independently because we do not guarantee the accuracy of our solutions. Instead, these answers are based only on our area of expertise, and we are only presenting them to serve as a resource for students.
NPTEL COURSE Python for Data Science Details
The NPTEL (National Programme on Technology Enhanced Learning) course “Python for Data Science” provides learners with a comprehensive understanding of using Python for data analysis and manipulation. This course aims to equip participants with the necessary skills to work with data and perform various data science tasks using Python programming.
1) What is the output of the following code?
a = 3
b = "12"
print (a*b)
- 36
- 121212
- 123
- Error: Invalid operation, unsupported operator *’ used between ‘int’ and ‘str’
2) What is the output of the following code?
a = -9//7
print(a)
- -1
- -2
- -1.28
- 1.28
3) Consider a following code snippet. What is a data type of y ?
X = 15
y= str(float (x))
- int
- float
- str
- Code will throw an error
4) Which of the following variable names are INVALID in Python?
- 1_variable
- variable_1
- variable1
- variable#
CRITERIA TO GET A CERTIFICATE in NPTEL Course Python for Data Science
Average assignment score = 25% of average of best 3 assignments out of the total 4 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100
Final score = Average assignment score + Exam score
NPTEL Python for Data Science Assignment 1 Solutions 2023
YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.
5) While naming the variable, use of any special character other than underscore(_) ill throw which type of error?
- Syntax error
- Key error
- Value error
- Index error
6) Let x = “Mayur”. Which of the following commands converts the ‘x’ to float datatype?
- str(float,x)
- x.float()
- float(x)
- Cannot convert a string to float data type
7) Which Python library is commonly used for data wrangling and manipulation?
- Numpy
- Pandas
- scikit
- Math
8) Predict the output of the following code.
X = 10
y = 5
z = 3
ans = x + y % z
print (ans)
- 12.0
- 12
- 11.667
- 11
9) Given two variables, j=6 and g =3.3. If both normal division and floor division 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
NPTEL Python for Data Science Assignment 1 Answers Join Group
10)Let a = 5 (101 in binary) and b =3 (011 in binary). What is the result of the following operation?
a = 5
b = 3
print (a & b)
- 3
- 7
- 5
- 1
These are Python for Data Science Assignment 1 Answers
More Weeks of Python for Data Science: Click Here
More nptel course: https://prabhakarguru.com/category/nptel-assignment/
Disclaimer – We recommend you to complete your NPTEL Python for Data Science Assignment independently because we do not guarantee the accuracy of our solutions. Instead, these answers are based only on our area of expertise, and we are only presenting them to serve as a resource for students.