Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:00,630 --> 00:00:05,930
To your surprise or not strings also have an indexing system.
1
2
00:00:05,940 --> 00:00:11,880
The good news is that they have exactly the same system as lists so they have positive and negative
2
3
00:00:11,880 --> 00:00:17,060
indexing and you can slice them and you can access items from them.
3
4
00:00:17,110 --> 00:00:28,530
Let me make a quick demonstration, string 'hello', that will give you the string 'e' which is still a string, 'hello'
4
5
00:00:28,550 --> 00:00:38,340
is a strin, 'e' is also a string, negative indexing, and also slicing.
One cool thing you can do is let me get
5
6
00:00:38,370 --> 00:00:39,530
this list.
6
7
00:00:39,660 --> 00:00:49,210
So it's a list containing different types of objects and what you can do is you can access, guess it.
7
8
00:00:49,840 --> 00:00:51,320
Well that's the 'hello' string.
8
9
00:00:51,370 --> 00:00:59,500
So, the first item of the list and then you can use a chain indexing such as for example if you type
9
10
00:00:59,560 --> 00:01:00,490
2 there.
10
11
00:01:00,610 --> 00:01:02,800
Guess what you're going to get?
11
12
00:01:02,980 --> 00:01:14,080
Well, you're going to get the first L because of that has an index of 2, so 0 for H, 1 for E, 2 for L because
12
13
00:01:14,100 --> 00:01:17,660
this part here is the value on its own.
13
14
00:01:17,870 --> 00:01:25,180
And this other part will get that item with index 2 of that value which happens to be a string.
14
15
00:01:25,250 --> 00:01:26,750
It is as simple as that.
1627
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.