Commit 1641d761 by BellCodeEditor

save project

parent 3a22e989
Showing with 17 additions and 0 deletions
a=[3,4,1,2,0,9,10]
count=len(a)
for i in range(count-1):
k=i
for j in range(i+1,count):
if a[j]<a[k]:
k=j
if i !=k:
a[i],a[k]=a[k],a[i]
print(a)
\ No newline at end of file
def f(n):
if n==1
return 1
return f(n-1)+n
print(f(100))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment