Month: April 2023

  • WHAT IS LIST IN PYTHON

    LIST DEFINITION- A LIST is basically a data structure consisting of a collection of any datatype ordered, changeable, and indexed elements or items, created by enclosing elements in square brackets or by using List() constructor. List items allow duplicate values and its first item has index [0]. Properties of List items- Ordered– List items have…

  • WHAT ARE SETS IN PYTHON

    SETS Definition- A set is basically a data structure consisting of a collection of any datatype unordered, unique, unchangeable, and unindexed elements, created by enclosing elements in curly braces or a set constructor.Note-Set items are unchangeable, but you can remove and/or add items How to Create a set In PYTHON? By using curly braces Python…