<jupyter_start><jupyter_text>bublesort<jupyter_code>len(a)
for i in range(len(a)-1,0,-1): # agrega dos elementos uno al inicio y otro al final
    for j in range(i):
        if a[j]>a[j+1]:
            tmp=a[j]
            a[j]=a[j+1]
            a[j+1]=tmp
        
    
a
a=[3,2,1]
counter=0

for  passnum in range(len(a)-1,0,-1):
    
        #comparar cada par y acomodar
        for i in range(passnum):
            print(i)
            if a[i]>a[i+1]:
                counter+=1
                temp=a[i]
                a[i]=a[i+1]
                a[i+1]=temp
                
a=[3,1,2]
passnum
counter<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14553990610328638, 'fraction_numerical': 0.03129890453834116, 'mean_word_length': 1.6122448979591837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '645120', 'license': 'MIT', 'n_tokens_mistral': 263, 'n_tokens_neox': 257, 'n_words': 50, 'path': 'hackerRank/sorted.ipynb', 'repo_name': 'emmanuelol/CodingPractice', 'size': '639'}