Added files for Ecoanova's Python 3 course.

This commit is contained in:
2019-12-07 20:09:13 -04:00
committed by GitHub
parent 3a24267742
commit 6bf8ac0e01
29 changed files with 604 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 range(100)]
b = qsort(a)
print(a)
print(b)