<jupyter_start><jupyter_text>combinations just gives list of combos - doesn't care about order - that's where permutations come in!P gives result and in whatever order they can be in.<jupyter_code>print(list(combinations(friends, 2)))
print(list(permutations(friends, 2)))
# mike, bob and bob, mike<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10060975609756098, 'fraction_numerical': 0.006097560975609756, 'mean_word_length': 7.435897435897436, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '515960', 'license': 'MIT', 'n_tokens_mistral': 114, 'n_tokens_neox': 103, 'n_words': 33, 'path': '19-21-itertools/my_code/Itertools_prmutations_combinations.ipynb', 'repo_name': 'Anthlis/My_100_Days_Of_Python', 'size': '328'}