The Joy of Computing using Python Week 3: Programming Assignment - Jul-Dec 2022

  NPTEL PROGRAMMING ASSIGNMENTS

The Joy of Computing Using Python

Week 3 Programming Assignment 1
Last Day of Submission: 18-Aug-2022

There is list L containing some numbers. Write a program to create a new list which contains the numbers which are either divisible by 5 or 7 or both. Print that new list in ascending order.

Input Formate:
  a list L
Output Formate:
 another list 'a'

Input:
[15, 17, 21, 25 ]
Output:
[15, 21, 25]


the joy of computing using python


 

 



Week 3 Programming Assignment 2
Last Day of Submission: 18-Aug-2022

Write a function rev which takes a list L and integer n and print the first n largest numbers of the list.


Input Format:
a list L and an integer n.

Output Format:
First n largest number in the list


the joy of computing using python


 

 



Week 3 Programming Assignment 3

Last Day of Submission: 18-Aug-2022

Write a program to count and print the number of odd numbers in a list L.

Input Format:
a list L

Output Format:
Total odd numbers in the list


the joy of computing using python


 

 


Post a Comment (0)
Previous Post Next Post