In Python, you can declare a string by enclosing text in either single quotes (') or double quotes ("). Here are examples of both:
# Using single quotes
my_string1 = 'Hello, World!'
# Using double quotes
my_string2 = "Hello, World!"
Both my_string1 and my_string2 are valid string declarations. You can use either style based on your preference or the need to include quotes within the string.
If you have any specific requirements or need further examples, feel free to ask!
