📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which of the following is used to declare a list in

    Python?
    A list[] Correct Answer Incorrect Answer
    B list() Correct Answer Incorrect Answer
    C [] Correct Answer Incorrect Answer
    D {} Correct Answer Incorrect Answer
    E () Correct Answer Incorrect Answer

    Solution

    Square brackets [] are used to create lists in Python, which are mutable and can store mixed data types.

    Practice Next
    ask-question