We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec8dfa commit 1fc1f73Copy full SHA for 1fc1f73
Python
@@ -0,0 +1 @@
1
+Subproject commit 73f6d8efff7753d6bdd7cd634ccf4b98490f57fb
bub.py
@@ -0,0 +1,16 @@
+def sw(a,b):
2
+ a, b = b, a
3
+ return [a,b]
4
+
5
6
+def bub(list):
7
+ for a, a_val in enumerate(list):
8
+ for b, b_val in enumerate(list):
9
+ if a_val < b_val:
10
+ list[a],list[b]=list[b],list[a]
11
+ print list
12
+ return list
13
14
15
16
+print bub([1,5,3,2,4])
0 commit comments