Computer Science, asked by AnuradhaTiwari, 1 year ago

What is String constant ? ​

Answers

Answered by MrTSR
15

Strings are a collection of characters which are stored together to represent arbitrary text inside a python program.You can create a string constant inside a python program by surrounding text with either single quotes ('), double quotes ("), or a collection of three of either types of quotes (''' or """). In the first two cases, the opening and closing quotes must appear on the same line in your program; when you use triple quotes, your text can span as many lines as you like. The choice of which quote symbol to use is up to you - both single and double quotes have the same meaning in python.

Similar questions