Strings Flashcards

1
Q

how to slice a string

A

string [ fisrt index : last index ]

fruit = “ blueberry “

print ( fruit [ 4 : 6 ] )

output : be

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly