NPTEL The Joy Of Computing Using Python Assignment 4 Answers 2022

NPTEL The Joy Of Computing Using Python Assignment 4

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

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

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

Answer:- b

Q2. What is the correct code to display whether the entered year is a leap year or not?

Answer:- d

Q3. What the following code will do?

Answer:- a

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

Answer:- c

???? Next Week Answers: Assignment 05 ????

quizxp telegram

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

Answer:- d

Q6. What is the code to generate all prime numbers between 0-100?

Answer:- b

Q7. What is code to replace all the letters of a movie name except special(‘-’, ‘White spaces’, etc) characters with * in a single line.

Answer:- d

Q8. What’s the output of the following code?

Answer:- a

Q9. What’s the correct code to calculate the sum of series 1 + (1+2) + (1+2+3) + (1+2+3+4) + …. + n terms.

Answer:- c

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

Q10. A perfect number is a number in which the sum of divisors is equal to that number. For example, 6 is a perfect number as a sum of its divisors 1,2,3 is equal to 6. Which function returns True if the number is a perfect number?

Answer:- a

Programming Assigment week 4

Q1. You are given an integer n. Write a program to print a right angle triangle. (See output of public test cases for the pattern)

Code:-

for q in range(1,n+1):
      for r in range(1,n-q+1):
            print(" ",end="")
      for s in range(q):
            print("*",end="")
      if q!=n:
            print("\n",end="")
           

   

Q2. You are given a string s. Print the string s with every consonant in s replaced by _.

Code:-

ans=""
con=["A","E","I","O","U","a","e","i","o","u"]
for i in s:
  if i not in con:
    ans+="_"
  else:
    ans+=i
print(ans,end="")
 

Q3. You are given a list L. Write a program to print all numbers in the list which are exactly repeated twice. The order of numbers should be same as in list.(for example if 3 appeared before 2 3 should be printed first.)

Code:-

ans=[]
for i in L:
  if L.count(i)==2 and i !="z":
      ans.append(i)
      L[L.index(i)]="z"
for b in ans:
  if ans.index(b)==len(ans)-1:
    print(b,end="")
  else:
    print(b)

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.