NPTEL The Joy Of Computing Using Python Assignment 10 Answers

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

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.

NPTEL The Joy of Computing using PythonAnswers
Assignment 1Click Here
Assignment 2Click Here
Assignment 3Click Here
Assignment 4Click Here
Assignment 5Click Here
Assignment 6Click Here
Assignment 7Click Here
Assignment 8Click Here
Assignment 9Click Here
Assignment 10Click Here
Assignment 11NA
Assignment 12NA

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

Q1. What is the output of the following code?

a. HELLO EVERYONE 
b. Hello Everyone 
c. helloeveryone 
d. hello everyone

Answer:- d. hello everyone

Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW

NPTEL The Joy Of Computing Using Python Assignment 10 Answers

Q2. type(9) will return?

  • float 
  • int 
  • str 
  • class

Answer: b

Q3. Output of the following code will be?

  • hello 
  • h.e.l.l.o 
  • .h.e.l..l.o 
  • .h.e.l.l.o

Answer: c

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

👇FOR NEXT WEEK ASSIGNMENT ANSWERS👇

NPTEL The Joy Of Computing Using Python Assignment 10 Answers

Q6. What does the following code represent?

Answer:- c

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?

Answer: a

The Joy Of Computing Using Python Assignment 10 Programming 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:-

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="")

Disclaimer:- We do not claim 100% surety of solutions, these solutions are based on our sole expertise, and by using posting these answers we are simply looking to help students as a reference, so we urge do your assignment on your own.

For More NPTEL Answers:- CLICK HERE

Join Our Telegram:- CLICK HERE

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

Leave a Comment