NPTEL The Joy Of Computing Using Python Assignment 9 Answers

NPTEL The Joy of Computing using Python Assignment 9 Answers 2022:- All the Answers 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 11Click Here
Assignment 12Click 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. 

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

NPTEL The Joy Of Computing Using Python Assignment 9 Answers

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

Q4. What is the output of the following code?

Answer: d

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

Answer: a

👇FOR NEXT WEEK ASSIGNMENT ANSWERS👇

NPTEL The Joy Of Computing Using Python Assignment 9 Answers

Q6.  How many neighbors does node 3 have? 

Answer:- d

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:-

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()

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 9 Answers 2022:- All the Answers provided here to help the students as a reference, You must submit your assignment at your own knowledge.

Leave a Comment