SHARE
TWEET

Untitled

a guest Nov 18th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  mon_tab= [8, 9, 18, 9, 2, 7]
  2. tri_selection(mon_tab)
  3.     for i in range(0, len(tab)-1):
  4.         mini=tab[i]
  5.         i_mini=i
  6.         for j in range (i+1, len(tab):
  7.             if tab[j] < mini:
  8.             i_mini=tab[j]
  9.             i_mini=j
  10.     tab[i],tab[i_mini]=tab[i_mini],tab[i]
  11. return tab
  12.  
  13.  
  14. def tri_insertion(tab):
  15.     for i in range(, len(tab)
  16. print(tab)
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