Nptel The Joy Of Computing Using Python | NPTEL Week 8 Programming Assignment | NPTEL Assignment Solutions

NPTEL The Joy Of Computing Using Python Week 8 Programming Assignment | NPTEL Swayam Assignment Answers


the joy of computing usin python nptel


Join Us On Telegram

👇👇👇👇👇👇
telegram

Join Us On Youtube

👇👇👇👇👇👇

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


Code:





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_



Code:






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]



Code:




If you are facing any queries regarding this assignment solutions, then please drop comment in comment section.

Post a Comment

0 Comments