Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 125 - 2615_KEC
P. 125

    Output
                      o
                      a
                      n
                      d
                      4

                          REVISIT

                       ▶   A function can be defined as a block of reusable code that performs a specific task.
                       ▶   Python functions can be categorised into built-in functions and user-defined functions.
                       ▶   User-defined functions are created by the user according to the need of the program.
                       ▶   A sequence of characters which is enclosed or surrounded by single (' '), double (" "), or Triple (''' ''') quotes is
                         known as a string.
                       ▶   Single-line string can be created by enclosing characters inside single or double quotes.
                       ▶   A multiline string in Python begins and ends with either three single quotes or three double quotes.
                       ▶   In Python, a list is a type of container that is used to store a list of values of any type.

                                                                                       Functions, String and List in Python  123

| 120 121 122 123 124 125 126 127 128 129 130 |