Programming in Python - - Unit 6 - Week 6 (Contents)_ Introduction to list_
Programming in Python - - Unit 6 - Week 6 (Contents)_ Introduction to list_
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/CEC)
Course Assessment-6-2024
outline The due date for submitting this assignment has passed.
Due on 2024-03-24, 23:59 IST.
Week 1 Score: 10/10=100%
(Contents) :
Planning the
Computer Assignment submitted on 2024-03-21, 15:18 IST
Program () 1) What will be the output of the following code? 1 point
print(list("Assam"))
Week 2
(Contents): ['A', 's', 's', 'a', 'm']
Techniques ['Assam']
of Problem
[A, s, s, a, m]
Solving ()
['A, s, s, a, m']
Week 3 Yes, the answer is correct.
(Contents): Score: 1
Introduction Accepted Answers:
to Python () ['A', 's', 's', 'a', 'm']
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=31&assessment=97 1/4
4/23/24, 2:14 AM Programming in Python - - Unit 6 - Week 6 (Contents): Introduction to list.
8
Lecture 1:
Introduction to 4
list. (unit? 5
unit=31&lesso
2
n=32)
Yes, the answer is correct.
Lecture 2: Score: 1
Accessing list
Accepted Answers:
and list
5
Operations.
(unit?
unit=31&lesso 4) What will be the output of the following code? 1 point
n=33) a=[1]
b=a.append(2)
Lecture 3:
print(b)
Working with
lists. (unit? [1, 2]
unit=31&lesso
n=34)
None
[1, 2, 3]
Week 7
(Content): [1, 2, 4]
Introduction [1, 4, 3]
to tuples. () [2, 4, 3]
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=31&assessment=97 2/4
4/23/24, 2:14 AM Programming in Python - - Unit 6 - Week 6 (Contents): Introduction to list.
Week 12 2
(Contents): -2
Exception
3
Handling ()
4
[1, 2, 5, 6]
[1, 2]
[5, 6]
No output
list = {}
list = []
list = ()
list = [None]
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=31&assessment=97 3/4
4/23/24, 2:14 AM Programming in Python - - Unit 6 - Week 6 (Contents): Introduction to list.
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=31&assessment=97 4/4