SHARE
TWEET

Untitled

a guest Jun 20th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i in range(len(array) - 1):
  2.     for j in range(len(array) - 1):
  3.         if array[j] > array[j + 1]:
  4.             array[j], array[j + 1] = array[j + 1], array[j]        
  5.     print(" ".join([str(number) for number in array]))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top