>A Byte of Python

Strings

A string is a sequence of characters . Strings are basically just words.

I can almost guarantee that you will be using strings in every Python program that you write, so pay careful attention to the following part. Here's how you can use strings in Python:

Note for C/C++ Programmers

There is no separate char data type in Python. There is no real need for it and I am sure you won't miss it.

Note for Perl/PHP Programmers

Remember that single-quoted strings and double-quoted strings are the same - they do not differ in any way.

Note for Regular Expression Users

Always use raw strings when dealing with regular expressions. Otherwise, a lot of backwhacking may be required. For example, backreferences can be referred to as '\\1' or r'\1'.