Study Material
Computer Science
What is printed by the Python code?
print(list(range(3)))
[0, 1, 2, 3]
[1, 2, 3]
[0, 1, 2]
0, 1, 2
Python List Manipulation
8 Likes
Answer
[0, 1, 2]
Answered By
3 Likes
Related Questions
To find the last element of list namely 'smiles' in Python, .......... will be used.
View Answer
Bookmark Now
Out of the following, what is correct syntax to copy one list into another?
View Answer
Bookmark Now
Which of the following commands will create a list?
View Answer
Bookmark Now
What is the output when we execute list("hello")?
View Answer
Bookmark Now