characters = 4 string = "This is a string" print(string[:characters]) #output: 'This'
string = 'This is a string' print(string[0]) #output: 'T'