Create a String using Double Quotes

To create a string using double quotes in Python, enclose the string value in double quotes, with a double quote before the string value, and a double quote after the string value.

In the following example, Hello World is string value. To specify this value as a string literal in Python, we use double quotes, as shown in the following.

</>
Copy
"Hello World"

We may assign this value to a variable as shown in the following.

</>
Copy
message = "Hello World"