as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write a python script for sorting a list of integers in ascending order.
user
def bubblesort(arr): 
    n = len(arr) 

    # traverse through all array elements 
    for i in range(n): 

        # last i elements are already in place 
        for j in range(0, n-i-1): 

            # traverse the array from 0 to n-i-1 
            # swap if the element found is greater 
            # than the next element 
            if arr[j] > arr[j+1] : 
                arr[j], arr[j+1] = arr[j+1], arr[j] 

# driver code to test above 
arr = [64, 34, 25, 12, 22, 11, 90] 

bubblesort(arr) 

print ("sorted array is:") 
for i in range(len(arr)): 
    print ("%d" %arr[i]),
assistant