PYTHON : Python is a high-level programming language known for its simple and readable syntax
- Allows writing clean code with fewer lines.
- Supports multiple programming paradigms including object-oriented, functional and procedural programming.
- Widely used in web development, automation, data analysis, artificial intelligence and many other fields.
- Dynamically typed and has automatic garbage collection.
PYTHON DATA TYPES:
LIST.
TUPLE.
SET.
DICTIONARY.
SEQUENCETYPE.
LIST:
- Ordered and mutable collections used to store multiple items in a single variable.
- Elements in a list can be of different data types and are accessed using indexing.
TUPLE:
- Ordered and immutable collections used to store multiple items in a single variable.
- Once created, tuple elements cannot be modified and are accessed using indexing.
SET:
- Unordered and mutable collections used to store unique elements.
- Sets are unordered, elements cannot be accessed using indexing.
DICTIONARY:
- It's used to store data in key:value pairs.
- Each key in a dictionary must be unique and values are accessed using their keys with square brackets [] or get() method.
SEQUENCE TYPE:
- An ordered collection of items, which can be of similar or different data types.
- Elements in a sequence can be accessed using indexing.


Top comments (0)