NPTEL The Joy of Computing using Python Week 3 Assignment Answers 2025
1. Which of the following is/are false statement(s)?
- Lists are fixed in size, they cannot store more than 1024 values
- One can access element in list by using non-numeric indices
- Iterating over lists is possible in Python
- We need to specify required size of list while creating a new list variable
Answer :- For Answers Click Here
2. In the below code –

For what value of n does the program print 10 ?
Answer :-
3. From the previous question, for what values of n is the number 25 appended to list a.
- 25
- 24
- 35
- 32
Answer :-
4. What does the following code perform ?

- It converts any input list into a new list which is filled with some numbers which are always in increasing order
- It converts any input list into a new list such that at even indices, the value is a multiple of an even number and at odd indices, the value is either even or negative number
- It converts any input list into a new list such that at odd indices, the value is always even number and at even indices, the value is negative
- It converts any input list into a new list, which follows no pattern
Answer :-
5. From the previous question, if the option –
It converts any input list into a new list such that at even indices, the value is a multiple of an even number and at odd indices, the value is either even or negative number.
is incorrect, Can you make changes to code such that it this option is always true for
any input ?
- No, it is not possible to make such changes
- No, the option is already correct
- Yes, we can make changes
Answer :- For Answers Click Here
6. If file.txt exists, Does the code successfully run ?

- Yes
- No
Answer :-
7. Which of the following are examples of Social Computing ?
- ChatGPT
- Wikipedia
- Quora
- Twitch
Answer :-
8. What does the following code print for n = 256?

- PYTHON IS BORING
- PYTHON IS FUN
Answer :-
9. From the previous question, is a.sort() responsible for printing of either of the two possible sentences ?
- Yes, and the code may print ”PYTHON IS FUN”
- No, it is purely dependent on variable n
- No, it is not dependent on a.sort(), and the code will never print ”PYTHON IS FUN”
Answer :-
10. What does the code in question 8, calculate ?
Can you say what the values of k and b are if n = 245326785456 x 103359.
If values of k and b are different, enter 0, else enter value of k.
Answer :- For Answers Click Here