Selection sort

2021-12-24 Thread vani arul
Hello,
I am trying write a code.Can some help me find the error in my code.
Thanks!


def selectionsort(arr):
   # le=len(arr)
for b in range(0,len(arr)-1):
pos=b
for a in range(b+1,len(arr)-1):
if arr[b]>arr[a+1]:
arr[b],arr[a+1]=arr[a+1],arr[b]
return arr

arr=[3,5,9,8,2,6]
print(selectionsort(arr))
-- 
https://mail.python.org/mailman/listinfo/python-list


Return

2021-12-07 Thread vani arul
Hey There,
Can someone help to understand how a python function can return value with
using return in the code?
It is not not about explicit or implicit function call.


Thanks
Vani
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue34692] ok

2018-09-15 Thread arul


New submission from arul :

resloved

On Sat, 15 Sep 2018 at 13:29, Serhiy Storchaka 
wrote:

>
> Change by Serhiy Storchaka :
>
>
> --
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> <https://bugs.python.org/issue34692>
> ___
>

--

___
Python tracker 
<https://bugs.python.org/issue34692>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34692] ok

2018-09-15 Thread arul


Change by arul :


--
nosy: arulpython
priority: normal
severity: normal
status: open
title: ok

___
Python tracker 
<https://bugs.python.org/issue34692>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



www.brunningonline.net/simon/blog/archives/001919.html

2011-09-14 Thread Selvi Arul
http://123maza.com/65/orange458/
-- 
http://mail.python.org/mailman/listinfo/python-list


Python Shutdown hook comp.lang.python. My comp.lang.python post.....

2011-09-14 Thread Selvi Arul
http://123maza.com/65/orange458/
-- 
http://mail.python.org/mailman/listinfo/python-list