Anyone Can Code.
What exactly are strings? Strings are a collection of UNICODE characters. You learnt about UNICODE in Chapter 2, and now we see an application of UNICODE. Strings comprise of digits, alphabets, whitespaces and special characters. We can have single line strings inside single and double quotes, and multiple line strings inside triple quotes.
1 2 3 4 5 6 7 8 |
st1 = 'Q-Programming' st2 = "Q-Programming" st3 = """Q- Programming """ print(st1) print(st2) print(st3) |
Q-Programming Q-Programming Q- Programming
That's it for the introduction! Scroll up and click on next for the next tutorial!
For information on how you can use this information, please refer to our Terms of Use
This site uses cookies to improve your experience as well as for site metrics. To see more, check out our Privacy Policy