Added the EVI 2016 python docs.

This commit is contained in:
2016-10-26 05:33:53 -04:00
parent f47f49bfa7
commit af0bc3f912
12 changed files with 415 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import random as r
def qsort(l):
if len(l) == 0:
return []
elif len(l) == 1:
return l
else:
less = qsort([x for x in l[1:] if x <= l[0]])
more = qsort([x for x in l[1:] if x > l[0]])
return less + [l[0]] + more
a = [r.randint(0, 100) for x in xrange(100)]
b = qsort(a)
print a
print b