texto = "Python" primeiro_caractere = texto[0] # 'P' substring = texto[1:4] # 'yth'