O'Reilly logo

Practical Time Series Analysis by Dr. PKS Prakash, Dr. Avishek Pal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Strings

Strings are iterables of 8-bit characters in Python 2.x and Unicode characters in Python 3.x. Strings can be declared in multiple ways, some of which are shown in the following code snippet:

#string declarationsmystring = 'Practical Time Series'print(mystring)mystring = "Practical Time Series"print(mystring)mystring = """Practical Time Series"""print(mystring)mystring = '''Practical Time Series'''print(mystring)

All four of the preceding declarations result in the same string and the print function in each case gives the same output:

Practical Time Series

Strings are objects of type class, str, and support several functions that make string handling easy. We have shown a few examples in the Jupyter Notebook, code/Getting_started.ipynb ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required