Week 4 Programming Assignment Solutions | The Joy of Computing using Python

Опубликовано: 17 Май 2026
на канале: Simple Edu Talk
491
3

Week 4 Programming Assignment Solutions | The Joy of Computing using Python

The Joy of Computing using Python | Week 4 Programming Assignment Solutions | NPTEL | Swayam
The Joy of Computing using Python : Week 4 Programming Assignments | NPTEL

Hi Everyone,
Welcome to "Simple Edu Talk" Channel.
Here I will provide for you NPTEL THE JOY OF COMPUTING USING PYTHON All Assignment Quiz Answers.
So please subscribe this channel and press the bell icon to get new video Notification first and then you can watch new assignment answers video.

#nptel #thejoyofcomputingusingpython #python


Website Link : https://nptelcodes.blogspot.com/

All Codes Link: https://nptelcodes.blogspot.com/2022/...

TOPIC



Week 4: Programming Assignment 1
Take two numbers N and K as an input. Create a list L of length N and initialize it with zeros. Change the value to 1 of even indexes if k is even, otherwise change the value of odd indexes. Print list L in the end.(Consider 0 as even)

Input
N
K

Output
A list L

Example

Input
5
2

Output
[1, 0, 1, 0, 1]



Week 4: Programming Assignment 2
Write a program to take string S as an input and replace all vowels by *. Also print the modified string.

Input
A string S

Output
Modified string


Week 4: Write a program to take an integer N as an input and display the pattern.

Input
5

Output

*
*
* *
* * *
* * * *
* * *
* *
*
*



Follow Us:-

Telegram Channel Link..
https://t.me/simpleedutalk

Facebook:-
  / simpleedutalk  

Twitter:-
  / simpleedutalk1  



Thank you 🌹🌹

#simpleedutalk #NPtelJoyWeek2programming #Joyweek2programminganswers