Robotics & Artificial Intelligence
You can create a list with different data items by placing them inside single quotes.
Python List Manipulation
2 Likes
Answer
False
Reason — A list is created by placing data items inside square brackets [ ], separated by commas.
Answered By
1 Like
Related Questions
What should be the output of the following program and why?
my_list=[2,3,4,5,6,7] print(my_list[-7])What should be the output of the following program and why?
list_new=[34, "Hi", 56.7, "Hello"] list_new.extend(["India", "Happy"]) print(list_new)The value of a list item can be easily updated.
Each data item in the list is assigned a unique index value.