Question
Easy

In python elements of the list are written inside :

1
[]
2
{}
3
()
4
<>
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Python Programming Fundamentals
Topic: List
Correct Answer
Option A
Explanation

The correct option is (1): Square brackets, represented as \[\], are the definitive and mandatory syntax for creating and enclosing elements within a Python list. The list is one of Python's most fundamental and versatile data structures, characterized by being ordered, changeable (mutable), and allowing duplicate members. When you define a list in a Python program, for example, my\_list = [10, "apple", 3.14], the interpreter immediately recognizes the contents enclosed…Read More