-
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…
-
WHAT IS A DICTIONARY IN PYTHON
Dictionaries A dictionary is a mapping of keys to values. It’s also sometimes called a hash table or associative array. The keys serve as indices for accessing values. Dictionaries are written with curly brackets as shown in the below examples. Dictionaries in python are used to store data values in key: value pairs each pair…
-
WHY TO LIVE IN PRESENT
The past is already gone, the future is not yet here. There’s only one moment for you to live.
-
WHY PLAYING IS IMPORTANT
We don’t stop playing because we grow old; we grow old because we stop playing.