Bubble sort a list of integers for a number of iterations
Three improvements:


Use the for loop idiom instead of a counter and use _ for variables you don't use.
return the result, don't print it, you should separate processing and output.
Use nums, not num because you should sort multiple numbers, a plural is a more sensible choice.




def bubsort(nums, iters):
    for _ in xrange(iters):
        nums = sorting(nums)
    return nums