Yep the string slices:
x = raw_input('Say something: ')
Then we have variable x with string 'Hello'.
'H'
'e'
'l'
If you then want variable y to be the second letter:
x = raw_input('Say something: ')
Then we have variable x with string 'Hello'.
Code:
print x[0:1]
Code:
print x[1:2]
Code:
print x [2:3]
If you then want variable y to be the second letter:
Code:
y = x[1:2]