Page 63 - Modular v1.1 Pyhton
P. 63

On running the above program, you will get the following output:














                 Empty Strings

                 An empty string is a string having length zero, i.e. a string without having any character. When

                 we print an empty string, a blank space gets displayed in the next line.
                 Program 2: To create an empty string.








                 On running the above program, you will get the following output:













                 Multiline Strings

                 A multiline string are represented by using either three single quotes or three double quotes.
                 Any quotes, tabs, or newlines inside the “triple quotes” are considered as a part of the string.

                 Program 3: To print multiline strings.










                 On running the above program, you will get the following output:

















                                                                                      String Handling in Python   61
   58   59   60   61   62   63   64   65   66   67   68