<jupyter_start><jupyter_text>Métodos de listas---* [documentação](https://docs.python.org/3/tutorial/datastructures.html).* alguns métodos.* entendendo o conceito de cópia;<jupyter_code>lista_de_compras = ['arroz', 'feijao', 'macarrao', 'biscoito']<jupyter_output><empty_output><jupyter_text>Alguns métodos---* append()<jupyter_code>lista_de_compras.append('banana')
lista_de_compras<jupyter_output><empty_output><jupyter_text>* extend()<jupyter_code>lista_de_compras.extend([['papel', 'lapis', 'caneta']])
lista_de_compras<jupyter_output><empty_output><jupyter_text>* count()<jupyter_code>letras = ['a', 'a', 'b', 'c', 'g', 'k', 'l', 'l', 'l', 'l', 'l', 'l', 'a', 'u']
print(letras.count('l'))<jupyter_output>6<jupyter_text>* clear()<jupyter_code>letras.clear()
letras<jupyter_output><empty_output><jupyter_text>Entendendo o conceito da cópia...* copy()<jupyter_code>lista_de_compras = ['arroz', 'feijao', 'macarrao', 'biscoito']
lista_de_compras
lista = lista_de_compras.copy()
lista = lista_de_compras[:]
lista.append('banana')
lista_de_compras<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19127205199628597, 'fraction_numerical': 0.0018570102135561746, 'mean_word_length': 11.534883720930232, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '301555', 'license': 'MIT', 'n_tokens_mistral': 475, 'n_tokens_neox': 482, 'n_words': 56, 'path': 'arquivos-aulas/cap-5-listas/.ipynb_checkpoints/cap 5 - listas - 3-checkpoint.ipynb', 'repo_name': 'kitawarairon/curso-pyton-engenharia', 'size': '1077'}