The Joy of Computing using Python Week 6: Programming Assignment - Jan-Jul 2023

        NPTEL PROGRAMMING ASSIGNMENTS

The Joy of Computing Using Python

Weekk 6 Programming Assignment 1
Last Day of Submission: 9-Mar-2023

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.

Input Formate:
  Integer, List, Integer
Output Formate:
 Integer

Input:    
5
[4, 5, 3, 2, 1]
2

Output:
5


the joy of computing using python




 

  



Week 6 Programming Assignment 2
Last Day of Submission: 9-Mar-2022

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 lower-case letter in the sentence by -2 position and every upper-case letter by -3 position. 


Input Formate:
  String
Output Formate:
 Encrypted Message( String)


Input
  Hello

Output
  Ecjjm


the joy of computing using python




 

  



Week 6 Programming Assignment 3
Last Day of Submission: 9-Mar-2022
Write a function whole(N) which takes a number N and return the sum of first N whole number. Write the program using recursion.

Input Formate:
 Integer
Output Formate:
 Integer

Input
 6

Output
 21


the joy of computing using python




 

  


Post a Comment (0)
Previous Post Next Post