<jupyter_start><jupyter_text>Slides da aula:
https://drive.google.com/file/d/1kPictJAroso99byyH21cy5rKuu00r_X2/view

Vídeo da aula:
https://www.youtube.com/watch?v=tncUj65VO-M&list=PLH9knZH6lcgo0ndsXfwX0CGO_ad1t6cSO&index=79
 Palíndromo: arara<jupyter_code>def verif_palindromo(pa):
  pa = pa.upper()
  n = len(pa)
  num = int(n/2)
  verif = True
  for i in range(0,num):
    j = n-(i+1)
    print("pa[{0:d}] = {1:s}".format(i,pa[i]))
    print("pa[{0:d}] = {1:s}".format(j,pa[j]))
    if (pa[i] != pa[j]): # ver slides... interessante!!!
      verif = False
      break
  return verif
p = "socorrammesubinoonibusemmarrocos"
if (verif_palindromo(p)):
  print("A palavra '{0:s}' é um palíndromo".format(p))
else:
  print("A palavra '{0:s}' não é um palídromo".format(p))<jupyter_output>pa[0] = S
pa[31] = S
pa[1] = O
pa[30] = O
pa[2] = C
pa[29] = C
pa[3] = O
pa[28] = O
pa[4] = R
pa[27] = R
pa[5] = R
pa[26] = R
pa[6] = A
pa[25] = A
pa[7] = M
pa[24] = M
pa[8] = M
pa[23] = M
pa[9] = E
pa[22] = E
pa[10] = S
pa[21] = S
pa[11] = U
pa[20] = U
pa[12] = B
pa[19] = B
pa[13] = I
pa[18] = I
pa[14] = N
pa[17] = N
pa[15] = O
pa[16] = O
A palavra 'socorrammesubinoonibusemmarrocos' é um palíndromo
{'fraction_non_alphanumeric': 0.20199501246882792, 'fraction_numerical': 0.06816292601828762, 'mean_word_length': 3.703125, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '110317', 'license': 'MIT', 'n_tokens_mistral': 665, 'n_tokens_neox': 629, 'n_words': 127, 'path': 'Módulo07Aula26.ipynb', 'repo_name': 'julianovale/pythonparatodos', 'size': '1203'}