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
In questa pagina del sito puoi guardare il video online Week 4 Programming Assignment Solutions | The Joy of Computing using Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Simple Edu Talk 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 491 volte e gli è piaciuto 3 spettatori. Buona visione!