what is the basic rule to declare a string?
Answers
Answered by
1
Answer:
To create a string, put the sequence of characters inside either single quotes, double quotes, or triple quotes and then assign it to a variable. You can look into how variables work in Python in the Python variables tutorial. For example, you can assign a character 'a' to a variable single quote character.
You can easily identify strings as they are inside double or single quotes.
Hope it helps you.
Please mark it as brainliest.
Similar questions