Sorry, you do not have permission to ask a question, You must login to ask a question.

# NPTEL Python for Data Science Assignment 1 Answers 2023

Data science is basically the science of analyzing raw data and deriving insights from that data. Multiple techniques can use to derive insights, you could use simple statistical techniques to derive insights, you could use more complicated and more sophisticated machine learning techniques to derive insights and so on.

Data science is not only useful from an industrial perspective, it is also useful in actual science itself.

The Python for Data Science course started on the 23rd of January 2023 and it will continue for the next four weeks.

Topics covered in the first week of the Python for Data Science course:

• Introduction to Python

• Introduction to Spyder

• Variables and Datatypes

• Operators

## NPTEL Python for Data Science Assignment 1 Answers

Q1. Which of the following is/are the correct ways of naming variables in Python?

c. max2 = 5

Q2. What does 5%11 will evaluate to

Q3. What does 4//7 evaluate to

What will be the output of the following code snippet?

Q4. i.

``````num 1 = '100'
num_2 = '200'
print(num_1 + num_2)``````

Q5. ii.

``````num_1 = '100'
num_2 = '200'
print(num_1 + num_2)
num_1 = int(num_1)
num_2 int(num_2)
print(num_1 + num_2)``````

Q6. What is the type of the following expression?
1 + 4 / 2

Q7. What is the type of the following expression?

``(1 > 0) and (-1 < 0) and (1 == 1)``

Q8. What is the output of the following code snippet?

``````result = 12-4 * (16//2**4)+32
print(result)``````

Q9. Which of the arithmetic operators given below cannot be used with ‘strings’ in Python?

Q10. Consider the list of instructions and resulting outputs given below. Pick the set that is incorrect.

``````1. print("Good", end="")
print("Day")
Output -> Good Day

2. word1 = "Trial"
print("Word is %s" %word1)
Output -> Trial

3. num1 = 23
print("Number: %f "%num1)
Output -> Number: 23.000000

go``````

Q11. Two variables X and Y were assigned the following values initially: X = 3 and Y = 6. Which of the following statements will help swap the values between these two variables?

Answer: d. X, Y = Y, X

Disclaimer: These answers are provided only for the purpose to help students to take references. Sikshapath does not claim any surety of 100% correct answers. So, this website urges you to complete your assignment yourself.

NPTEL Python for Data Science Week 2 Assignment Answers

## NPTEL Programming In Java Week 6 Assignment Answers 2023 