In Python, single and double quotes are used to denote a string and there's no specific difference between them. You can use either of them to define a string.
In the first example, the string contains a single quote ('), so we've used double quotes (") to define the string. In the second example, the string contains double quotes, so we've used single quotes to define the string.
Also, triple quotes (both single and double) are used for defining multi-line strings or docstrings.
python
multi_line_string = """This is a
multi-line string"""
docstring = '''This function does nothing
but it has a multi-line
docstring'''