NPTEL The Joy Of Computing Using Python Assignment 8 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 8

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

Q1. What is the correct initialisation of tuples?

a. Dates = [12,23,3,4] 
b. Dates = (12,23,3,4) 
c. Dates = {12,23,3,4} 
d. Both B and C

Answer:- b. Dates = (12,23,3,4) 

Q2. What operations can be done on tuples?

Answer: d

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

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

Answer: c

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

Answer: a

Q5. When the following program will clap? 

Answer: b

Q6. Which statement is correct about the following program?

Answer:- d

Q7. What does NLTK do?

Answer: a

Q8. What is the output of the following code?

Answer: c

Q9. While converting an image into black and white during enhancement you cannot convert it back into a colored image.

Answer: b

Q10. The following code will

Answer: a

Programming Assignment

Q1. Given a Tuple T, create a function squareT which accepts one argument and returns a tuple containing similar elements given in tuple T and its sqaures in sequence.

Code:-

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

def squareT(t):
  L=[]
  for i in t:
    L.append(i*i)
  return(tuple(list(t)+L))
    

Q2. Given a string S, write a function replaceV that accepts a string and replace the occurrences of 3 consecutive vowels with _ in that string. Make sure to return the answer string.

def replaceV(s):
  a=s
  v=list("aeiou"+"AEIOU")
  for i in range(len(s)-2):
    if s[i] in v and s[i+1] in v and s[i+2] in v:
        a=a.replace(s[i]+s[i+1]+s[i+2],'_')
  return(a)

Q3. Given a list L, write a program to shift all zeroes in list L towards the right by maintaining the order of the list. Also print the new list.

z=[]
a=[]
for i in L:
  if i!=0:
    a.append(i)
  else:
    z.append(0)
print(a+z,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.