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

Publicado el: 01 enero 1970
en el canal de: 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


En esta página del sitio puede ver el video en línea Week 4 Programming Assignment Solutions | The Joy of Computing using Python de Duración hora minuto segunda en buena calidad , que subió el usuario Simple Edu Talk 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 491 veces y le gustó 3 a los espectadores. Disfruta viendo!