On Monday, May 27, 2013 11:18:34 AM UTC+5:30, Steven D'Aprano wrote:
> On Sun, 26 May 2013 21:48:34 -0700, lokeshkoppaka wrote:
>
>
>
> > def shuffle(input, i, j):
>
> > pass
>
> > input = input[i:j+1] +input[0:i] + input[j+1:]
&g
def shuffle(input, i, j):
pass
input = input[i:j+1] +input[0:i] + input[j+1:]
def test_shuffle():
input = [1, 2, 3, 4, 5, 6]
shuffle(input, 1, 2)
assert [2, 3, 1, 4, 5, 6] == input
i had done the above code but the problem is i had manipulated the "input" in
function shuffle(
On Saturday, May 25, 2013 11:27:38 AM UTC+5:30, Steven D'Aprano wrote:
> On Fri, 24 May 2013 22:39:06 -0700, lokeshkoppaka wrote:
>
>
>
> > On Saturday, May 25, 2013 10:54:01 AM UTC+5:30, Chris Angelico wrote:
>
>
>
> >> In that case, you're
On Saturday, May 25, 2013 10:54:01 AM UTC+5:30, Chris Angelico wrote:
> On Sat, May 25, 2013 at 3:15 PM, wrote:
>
> > On Friday, May 24, 2013 1:34:51 PM UTC+5:30, lokesh...@gmail.com wrote:
>
> >> i need to write a code which can sort the list in order of 'n' without use
> >> builtin functions
On Friday, May 24, 2013 1:34:51 PM UTC+5:30, lokesh...@gmail.com wrote:
> i need to write a code which can sort the list in order of 'n' without use
> builtin functions
>
> can anyone help me how to do?
Note:
the list only contains 0's,1's,2's
need to sort them in order of 'n'
--
http://mail.
i need to write a code which can sort the list in order of 'n' without use
builtin functions
can anyone help me how to do?
--
http://mail.python.org/mailman/listinfo/python-list
i need to get 32 bit binary equivalent of a decimal and need to change the 0's
to 1's and 1's to 0's
For Example
if the input is 2
Output should be:
the 32bit equivalent of 2 : 0010
and the 1's compliment is: 1101
is there any
ok Peter Otten,
but how to make a Class global??
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Chris Angelico,
i am new to python can you suggest me how to remove the error and solve it.
so,how can i create an instance for "Node" in that function??,is, it not
possible to create an instance in such a way?
--
http://mail.python.org/mailman/listinfo/python-list
Can anyone give me an idea of how to find the 2's Complement in python with an
example
--
http://mail.python.org/mailman/listinfo/python-list
i had written the following code i am unable to create the instance of the
class "Node" in the method "number_to_LinkedList" can any one help me how to do
??
and what is the error??
class Node:
def __init__(self, value=None):
self.value = value
self.next = None
def numb
On Friday, May 17, 2013 8:50:26 AM UTC+5:30, lokesh...@gmail.com wrote:
> I need to write numbers into a file upto 50mb and it should be fast
>
> can any one help me how to do that?
>
> i had written the following code..
>
> ---
I need to write numbers into a file upto 50mb and it should be fast
can any one help me how to do that?
i had written the following code..
---
def create_file_numbers_old(filename, size):
start
13 matches
Mail list logo