<

Python Programming: Strings

Posted on
6,372 Points
272 Views
1 Endorsement
Last Modified:
Published
Experience Level: Beginner
5:10
Learn the basics of strings in Python: declaration, operations, indices, and slicing.

Video Steps

1. Strings are declared with quotations; for example: s = "string"

2. Strings are immutable.

3. Strings may be concatenated or multiplied using the addition and multiplication operators, respectively.

4. String characters may be accessed by index; for example: s[1]

5. A specific range of a string may be accessed using the slice method; for example: s[1:3]

1
Author:Dototot
0 Comments
In this article we will see how to use Boolean in Python where it can be used to take any decisions if it is true or false , yes or no,  1 or 0.
In this article, we will see what are Tuple and how we use them in Python programming.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month