Strings Flashcards
1
Q
how to slice a string
A
string [ fisrt index : last index ]
fruit = “ blueberry “
print ( fruit [ 4 : 6 ] )
output : be
1
Q
A
1
Q
A
2
Q
A
3
Q
A
4
Q
A
how to slice a string
string [ fisrt index : last index ]
fruit = “ blueberry “
print ( fruit [ 4 : 6 ] )
output : be