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

Publié le: 01 janvier 1970
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Week 4 Programming Assignment Solutions | The Joy of Computing using Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Simple Edu Talk 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 491 fois et il a aimé 3 téléspectateurs. Bon visionnage!