NPTEL The Joy Of Computing Using Python Assignment 9 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 9

Are you looking for the Answers to NPTEL The Joy Of Computing Using Python Assignment 9? 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 9”. 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 9 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 9 Answers 2022:-

Q1. How can we identify which book is written by which author?

a. By matching handwriting. 
b. By analyzing word length with previous books. 
c. By analyzing the number of pages in a book. 
d. By analyzing the book’s preface.

Answer:- b. By analyzing word length with previous books. 

Q2. How can a list L can be converted into a tuple?

Answer: a

Q3. Will the following piece of code always return True?

Answer: a

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

Q4. What is the output of the following code?

Answer: d

Q5. How many edges are there in the following graph?

Answer: a

Q6.  How many neighbors does node 3 have? 

Answer:- d

Next Week Assignment Answers

quizxp telegram

Q7.  In which of the following ways can we create a string in python? 

Answer: d

Q8. How many nodes, edges does the following graph have?

Answer: a

Q9. A complete graph will have a degree of separation?

Answer: a

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

Q10. How can we get an RGB of a pixel?

Answer: b

Programming Assignment Answers

Q1. Given two string s1 and s2, write a function subStr which accepts two parameters s1 and s2 and will return True if a s2 is a substring of s1 otherwise return False. A substring is a is a contiguous sequence of characters within a string. 

Code:-

def subStr(s1,s2):
  return(s2 in s1)

Q2. Given two dictionaries d1 and d2, write a function mergeDic that accepts two dictionaries d1 and d2 and return a new dictionary by merging d1 and d2. 
Note: Contents of d1 should be appear before contents of d2 in the new dictionary and in same order. In case of duplicate value retain the value present in d1.

Code:-

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

def mergeDic(d1,d2):
  for k in d2:
    if k not in d1:
      d1[k]=d2[k]
  return(d1)

Q3. Given an integer n, print all the indexes of numbers in that integer from left to right.

Code:-

N=list(str(n))
P=[]
for i in N:
  if i not in P:
    P.append(i)
ans=[]
for i in range(len(P)):
  a=[]
  for j in range(len(N)):
    if(P[i]==N[j]):
      a.append(j)
  ans.append(a)
#print(ans)

for i in range(len(P)):
  print(int(P[i]), "",end="")
  #print(len(ans[i]))
  for j in range(len(ans[i])):
               print(int(ans[i][j]),"",end="")
  print()

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.