Posts

PYTHON--LIST

Image
                                              PYTHON    PROGRAMMING ---LIST LIST:        1.   Lists  are used to store multiple items in a single variable.           2.It  is mutable. this means that once defined ,they can be changed.         3.List is the most versatile data-type available in Python that can be written as a collection of comma-separated values or items between square brackets.        4.A single list can contain different Data-Types such as integers ,strings ,as well as objects .    Example:        A=[23,'Hello,23.4,'y''] LIST  OPERATORS:           1. '+'  OPERATOR  FOR  CONCATENATION:                  Concatenation ...

PYTHON STRING

Image
                  PYTHON     PROGRAMMING  --  STRING STRING:         1. It is a derived data type.         2.Strings are immutable. this means that once defined ,they cannot be changed.         3.Index position starts from 0. STRING  INDEX ( ):             The index( ) method finds the first occurrence of the specified  value.        EXAMPLE:   STRING  FUNCTIONS:         1.SLICING:                 👉Python Slicing is about obtaining a sub string from the given string by slicing.             SYNTAX:                     String[Start : End +1]             EXAMPLE:         2.STRING  CONCATENATION: ...