<jupyter_start><jupyter_text>Print de Listas2 Opções:- print "normal"- método join -> texto.join(lista)<jupyter_code>produtos = ['apple tv', 'mac', 'iphone x', 'iphone 11', 'IPad', 'apple watch', 'mac book', 'airpods']
print('.'.join(produtos))
print(';'.join(produtos))
print('\n'.join(produtos))<jupyter_output>apple tv.mac.iphone x.iphone 11.IPad.apple watch.mac book.airpods
apple tv;mac;iphone x;iphone 11;IPad;apple watch;mac book;airpods
apple tv
mac
iphone x
iphone 11
IPad
apple watch
mac book
airpods<jupyter_text>Lembrando do método split de strings:lista = texto.split(separador)<jupyter_code>produtos = 'apple tv, mac, iphone x, iphone 11, IPad, apple watch, mac book, airpods'
lista = produtos.split(',')
print(lista)
lista = produtos.split(', ')
print(lista)<jupyter_output>['apple tv', ' mac', ' iphone x', ' iphone 11', ' IPad', ' apple watch', ' mac book', ' airpods']
['apple tv', 'mac', 'iphone x', 'iphone 11', 'IPad', 'apple watch', 'mac book', 'airpods']
{'fraction_non_alphanumeric': 0.1750255885363357, 'fraction_numerical': 0.015353121801432957, 'mean_word_length': 6.409090909090909, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '123467', 'license': 'MIT', 'n_tokens_mistral': 399, 'n_tokens_neox': 386, 'n_words': 99, 'path': 'Arquivo aulas/Modulo 5/MOD5-Aula7(join).ipynb', 'repo_name': 'Sevi042/CursoPython', 'size': '977'}