Image

Anyone Can Code.





Image

Introduction to Strings

Sammarth Kumar



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)

Output

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






Copyright © 2020, Q-Programming | Created by Arjun Sodhi, Balpreet Juneja and Sammarth Kumar | Developed and Designed by Sammarth Kumar