The Joy Of Computing Using Python Week 6 : Assignment 1 | NPTEL | Answers July 2023
The Joy of Computing using Python Week 6 — Assignment 1 | NPTEL | Answer with Explanation
“Discover the Excitement of Computing with Python | Week 1 Multiple Choice Questions — Get ready to enhance your programming skills and deepen your understanding of the Python language with this week 6 MCQ on ‘The Joy of Computing using Python’. Test your knowledge and boost your confidence as a Python programmer today!”

| Learn Python at “Computer Courses — All in One” For Free
What will be the output of the following code?
import string
def shift(word, value):
letters = string.ascii_lowercase
new = "" for i in range(len(word)):
if word[i] in letters:
index = letters.index(word[i])
new = new + letters[(index + value) % 26]
else:
new = new + word[i] return new
a. Shift every letter in a given word by value.
b. Shift every letter in a given word by 1.
c. Shift every letter in a given word by 26.
d. Returns the same word.
https://www.computerbitsdaily.com/2023/08/joy-of-computing-using-python-week-6-assignment.html