NPTEL The Joy Of Computing Using Python Assignment 6 Answers 2022

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

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

Q1. The following code will

Q2. What will be the output of the following code if the input is ‘The Joy OF Computing’ ?

Q3. Which of the following is true about recursion?

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

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

Q6. What is the output of the following program?

Q7. What’s the correct code for Binary search?

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

Q8.What the following code will do?

Q9. A programme which is written in a recursive manner cannot be written in a non-recursive manner.

Q10. what will be the output of the following program?

Programming Assigment week 5

Q1. Aman likes to study about planets. Every night he goes outside and observe some planets with his telescope. Then he guesses the distance of each planet and pen it down. In this process he also pen down his favourite planet position. Given the distance of each planet to be unique you need to return position of Aman’s favourite planet after sorting all the distances.

Code:-

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

``print(sorted(L).index(L[K-1])+1,end="")``

Q2. Romeo and Juliet love each other. Romeo wants to send a message to Juliet and also don’t want anyone to read it without his permission. So he shifted every small letter in the sentence by -2 position and every capital letter by -3 position. (If the letter is c, after shifting to by -2 position it changes to a, and for D new letter will be A).
But the letter is too long and Romeo does not have enough time to encrypt his whole letter. Write a program to help Romeo which prints the encrypted message. You can assume there are no special characters except spaces and numeric value

Code:-

``````Cap=list("ABCDEFGHIJKLMNOPQRSTUVMWXYZ")
Small=list('abcdefghijklmnopqrstuvwxyz')
ans=""
for a in S:
if a=='a':
ans+='y'
elif a=='b':
ans+='z'
elif a=='A':
ans+='X'
elif a=='B':
ans+='Y'
elif a=='C':
ans+='Z'
elif a=='W':
ans+='T'
else:
if a in Cap:
ans+=Cap[Cap.index(a)-3]
elif a in Small:
ans+=Small[Small.index(a)-2]
else:
ans+=a
print(ans,end="")``````

Q3. write a function whole(N) which takes a number N and return the sum of first N whole number. Write the program using recursion.

Code:-

``````def whole(N):
return(sum(list(range(N+1))))``````