<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Python Programming: Strings

Posted on
6,360 Points
260 Views
1 Endorsement
Last Modified:
Experience Level: Beginner
5:12
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
Comment
Author:Dototot
0 Comments

Featured Post

Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Join & Write a Comment

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this article, we will discuss how to start development in Angular 6.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month