NPTEL The Joy Of Computing Using Python Week 8 Programming Assignment | NPTEL Swayam Assignment Answers
Join Us On Telegram
Join Us On Youtube
👇👇👇👇👇👇
Nptel Week 8 Programming Assignment Answers:
Q.1: Write a function cubeT that accepts a list L and returns a tuple containing cubes of elements of L.
Input
A tuple T
Output
Cube of T
Q.2: Given a string S, write a function replaceV that accepts a string and replace the occurrences of 3 consecutive vowels with _ in that string. Make sure to return the answer string.
Input:
aaahellooo
Output:
_hell_
Q.3: 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:
[0,1,0,3,12]
Output:
[1,3,12,0,0]
If you are facing any queries regarding this assignment solutions, then please drop comment in comment section.
0 Comments