NPTEL PROGRAMMING ASSIGNMENTS
The Joy of Computing Using Python
Weekk 8 Programming Assignment 1
Last Day of Submission: 22-Sep-2022
Write a function cubeT that accepts a list L and returns a tuple containing cubes of elements of L.
Input Formate:
List
Output Formate:
Tuple
Input:
[1, 2, 3]
Output:
(1, 4, 9)
Week 8 Programming Assignment 2
Last Day of Submission: 22-Sep-2022
Given a string S, write a function replaceV that accepts a string and replace the occurrences of 3 consecutive vowels with _ in that string.
Input Formate:
String
Output Formate:
String
Input
heiol
Output
Input
heiol
Output
h_l
Week 8 Programming Assignment 3
Last Day of Submission: 22-Sep-2022
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.
Input Formate:
List
Output Formate:
List
Input
Input
[0, 5, 0, 8, 9]
Output
[5, 8, 9, 0, 0]
[5, 8, 9, 0, 0]