First  |  Prev |  Next  |  Last
Pages: 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
can we change the variables with function
On Sun, May 9, 2010 at 1:19 AM, gopi krishna <dasarathulagopi(a)gmail.com> wrote: Hi    can I change the variable in a function using the function suppose def a(): x=20 can we change the variable using the function Your question is incomprehensible. Please rephrase it more clearly and provide mo... 9 May 2010 04:37
flattening list
On Sun, May 9, 2010 at 1:16 AM, gopi krishna <dasarathulagopi(a)gmail.com> wrote: Hi ,     Anyone can pls help me in flattening the list. if p is the my list which is defined below p=[1,[2,3,4],[5,6,],9,[[11,12]]] from the above how to get a list as [1,2,3,4,5,6,9,11,12] http://www.lmgtfy.com/?q=p... 9 May 2010 04:37
Leipzig Python User Group - Meeting, May 11, 2010, 08:00pm
On May 7, 2010, at 11:00 AM, Stefan Schwarzer wrote: === Leipzig Python User Group === We will meet on Tuesday, May 11, 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Julian Moritz will give a talk about CouchDB. Fo... 9 May 2010 01:25
A more general solution
You could interpret [[1,2,3,4],[5,6,7,8]] as a tree and your task as traversal of its leaves. All solutions before would not work with trees with bigger height. Here is how to traverse such trees recursively: def eventualPrint(x): for v in x: if isinstance(v, list): eventualPrint(x) else:... 9 May 2010 07:49
Kindly show me a better way to do it
Hi, I've a list that looks like following a = [ [1,2,3,4], [5,6,7,8] ] Currently, I'm iterating through it like for i in [k for k in a]: for a in i: print a but I was wondering if there is a shorter, more elegant way to do it? ... 10 May 2010 07:39
[ANN] Pyspread 0.1.1 released
Pyspread 0.1.1 released ======================= I am pleased to announce the new release 0.1.1 of pyspread. About: ------ Pyspread is a cross-platform Python spreadsheet application. It is based on and written in the programming language Python. Instead of spreadsheet formulas, Python expressions ar... 8 May 2010 16:42
Need help with my 1st python program
Pleaser help me with this. Here's a copy of the program, but it keeps calling for me to define pressure. # A small program to fetch local barometer reading from weather.com # and convert the value from metric to imperial. # My first attempt a... 8 May 2010 16:42
Fastest way to calculate leading whitespace
Hi This is a simple question. I'm looking for the fastest way to calculate the leading whitespace (as a string, ie ' '). Here are some different methods I have tried so far --- solution 1 a = ' some content\n' b = a.strip() c = ' '*(len(a)-len(b)) --- solution 2 a = ' some content\n' b = a.... 12 May 2010 00:29
MBT shoes($62,1:1 quality),online shopping www.promptc.com
dear Mr/Ms, Great day! welcome to visit online shopping website www.Promptc.com Basic information: 1)Payment:Paypal,WU,TT etc 2)Delivery time:3-7 days door to door safety delivery 3)Delivery methods:DHL,TNT,EMS etc 4)quality condition:Super A 5) Price range:$30-$37 6)various brands ,various 2010 newest ... 8 May 2010 09:00
Parmigiani Fleurier Watch wholesale from china,paypal payment and free shipping
Ebel Watch wholesale (paypal payment) (http://www.jordanonline06/) Bape Watch wholesale (paypal payment) (http://www.jordanonline06/) Bell&Ross Watch wholesale (paypal payment) (http:// www.jordanonline06/) Breit Ling Watch wholesale (paypal payment) (http:// www.jordanonline06/) Burberry Watch wholesale (paypal ... 8 May 2010 02:35
First  |  Prev |  Next  |  Last
Pages: 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133