Commit 02167135 by BellCodeEditor

save project

parent df3d801b
Showing with 7 additions and 7 deletions
a = [88, 75, 72, 82, 90, 85, 78, 91] def sum(n):
n=len(a)-1 if n==1:
for i in range(0,n): return 1
for j in range(0,n): sum_n=sum(n-1)+n
if a[j]>a[j+1]: return sum_n
a[j],a[j+1]=a[j+1],a[j] print(sum(100))
print(a) \ 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