NPTEL The Joy Of Computing Using Python Assignment 10 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 10

Are you looking for the Answers to NPTEL The Joy Of Computing Using Python Assignment 10? This article will help you with the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course NPTEL The Joy Of Computing Using Python Assignment 10”. So read the complete article carefully.

What is The Joy Of Computing Using Python?

The Joy Of Computing Using Python is a fun-filled whirlwind tour of 30 hrs, covering everything you need to know to fall in love with the most sought-after skill of the 21st century. This course includes examples of analytics in a wide variety of industries, and we hope that students will learn how you can use analytics in their careers and life. One of the most important aspects of this course is that you, the student, are getting hands-on experience creating analytics models; we, the course team, urge you to participate in the discussion forums and to use all the tools available to you while you are in the course!

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE 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.

Below you can find the answers for NPTEL The Joy Of Computing Using Python Assignment 10 Answers

Assignment No.Answers
The Joy Of Computing Assignment 1 Click Here
The Joy Of Computing Assignment 2 Click Here
The Joy Of Computing Assignment 3 Click Here
The Joy Of Computing Assignment 4 Click Here
The Joy Of Computing Assignment 5 Click Here
The Joy Of Computing Assignment 6 Click Here
The Joy Of Computing Assignment 7 Click Here
The Joy Of Computing Assignment 8 Click Here
The Joy Of Computing Assignment 9 Click Here
The Joy Of Computing Assignment 10 Click Here

NPTEL The Joy Of Computing Using Python Assignment 10 Answers 2022:-

Q1. What is the output of the following code?

Answer:- d

Q2. type(9) will return?

Answer: b

Q3. Output of the following code will be?

Answer: c

For Online programming test help and final exam preparation material Click Me

Q4. Which code snippet represent replacing all vowels with ‘_’ in a string?(suppose string name is s)

Answer: d

Q5. What will be the output of the following list slicing.

Answer: b

Q6. What does the following code represent?

Answer:- c

Next Week Assignment Answers

quizxp telegram

Q7.  What will be the output of the following code?

Answer: b

Q8. How to take a transpose of a matrix?

Answer: b

Q9. Lossy and Lossless compressions are the same?

Answer: b

If there are any changes in answers will notify you on telegram so you can get a 100% score, So Join

Q10. What is the shape of the following numpy array?

numpy.array([ [1,2,3], [4,5,6] ])

Answer: a

Programming Assignment Answers

Q1. Given a list L write a program to make a new list to fix the indexes of numbers to in list L to its same value in the new list. Put 0 at remaining indexes. Also print the elements of the new list in the single line. (See explanation for more clarity.)

Code:-

SL=sorted(list(set(L)))
IL=[0]*(max(SL)+1)
for i in range(len(SL)):
  IL[SL[i]]=SL[i]
print(*IL,end="") 

Q2. Ram shifted to a new place recently. There are multiple schools near his locality. Given the co-ordinates of Ram P(X,Y) and schools near his locality in a nested list, find the closest school. Print multiple coordinates in respective order if there exists multiple schools closest to him. Write a function closestSchool that accepts (X ,Y , L) where X and Y are co-ordinates of Ram’s house and L contains co-ordinates of different school.

Code:-

For Online programming test help and final exam preparation material Click Me

def closestSchool(x, y, L):
  min=99999
  distance=[]
  for i in L: 
    dis=((x-i[0])**2+(y-i[1])**2)**0.5
    distance.append(dis)
    if dis<min:
      min=dis 
  for i in range(len(distance)):
    if distance[i]==min:
        print(L[i])

Q3. Given a string s write a program to convert uppercase letters into lowercase and lowercase letters into uppercase. Also print the resultant string.

Code:-

print(input().swapcase(),end="")

For other courses answers:- Visit

For Internship and job updates:- Visit

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at [email protected]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

NPTEL The Joy of Computing using Python Assignment 10 Answers 2022:- All the Answers provided here to help the students as a reference, You must submit your assignment at your own knowledge.