On Sunday, December 20, 2015 at 3:29:30 AM UTC-8, Chris Angelico wrote:
[... much instruction deleted]
> There is a half-and-half possibility, too; sometimes a course will
> give you a challenge, and *then* introduce you to the techniques
> necessary for solving it (after letting you have a shot a
On 12/25/2015 06:04 PM, princeud...@gmail.com wrote:
#i have worked over 2hours only to get this: some-one help please
manipulate_data = []
[snip other incorrect nonsense...]
#this is the instruction:
Create a function manipulate_data that does the following
[snip...]
Let's start with your f
On Sat, Dec 26, 2015 at 2:06 PM, wrote:
> As a tranditional language programmer like me, the result is really weird.
By "traditional", I'm guessing you mean that you know C-like languages
(Java, ECMAScript/JavaScript, etc). In C, and in many languages
derived from or inspired by it, variable sco
jf...@ms4.hinet.net writes:
> In the first situation, the local variable 'counter' can be referenced
> correctly. But in the second, why a statement added after the print()
> statement can makes this variable "disappear", even the print() won't
> do the right thing. Isn't it wired? please help!
T
As a tranditional language programmer like me, the result is really weird.
Here is the test codes in file test1.py:
def outerf():
counter = 55
def innerf():
print(counter)
#counter += 1
return innerf
myf = outerf()
the result is:
>>> import
thank you God bless you moore...
--
https://mail.python.org/mailman/listinfo/python-list
#i have worked over 2hours only to get this: some-one help please
manipulate_data = []
item = {"apples": 23, "oranges": 15, "mangoes": 3, "grapes": 45}
manipulate_data.append(item)
for i in reversed(manipulate_data):
new = {"ANDELA", "TIA", "AFRICA"}
def list_append(manipulate_data, new):
On Friday, December 25, 2015 at 4:14:56 PM UTC-8, Steven D'Aprano wrote:
> On Sat, 26 Dec 2015 10:01 am, jeanbigbo...@gmail.com wrote:
>
> > As an occasional Python user, I'd like to be able to get for myself a
> > high-level overview of a package's capabilities.
>
> Best way to do that is to rea
On Friday, December 25, 2015 at 4:07:43 PM UTC-8, Terry Reedy wrote:
> On 12/25/2015 6:01 PM, jeanbigbo...@gmail.com wrote:
> > As an occasional Python user, I'd like to be able to get for myself a
> > high-level overview of a package's capabilities. I can do this after a
> > fashion interactive
On Sat, 26 Dec 2015 10:01 am, jeanbigbo...@gmail.com wrote:
> As an occasional Python user, I'd like to be able to get for myself a
> high-level overview of a package's capabilities.
Best way to do that is to read the package's documentation on the web.
[...]
> Is there a way to determine if a
On 25Dec2015 15:05, princeud...@gmail.com wrote:
i have gotten the answer of that problem
Please include some context when posting to the list; there are many
discussions and it is best to include a little more than the subject line in
such things. It is also polite to post your working solu
On 12/25/2015 6:01 PM, jeanbigbo...@gmail.com wrote:
As an occasional Python user, I'd like to be able to get for myself a
high-level overview of a package's capabilities. I can do this after a fashion
interactively in IPython using tab completes.
e.g.
import numpy as np
np. ---> Big list of
Hi,
I appreciate that you've made an effort this time to write some code,
but have you attempted to try to _execute_ any of this? [I can see that
the answer must be "no"]
On 25/12/15 23:09, princeud...@gmail.com wrote:
> #my solution is:
> def manipulate_data(dic,dict_data =
{'name':'prince'
Create a function manipulate_data that does the following
Accepts as the first parameter a string specifying the data structure to be
used "list", "set" or "dictionary"
Accepts as the second parameter the data to be manipulated based on the data
structure specified e.g [1, 4, 9, 16, 25] for a lis
i have gotten the answer of that problem
--
https://mail.python.org/mailman/listinfo/python-list
#my solution is:
def manipulate_data(dic,dict_data = {'name':'prince','age':21,'sex':'male'}):
return dict_data.keys()
def manipulate_data( alist, list_data = [2,8,16,23,14]):
return list_data.reverse()
def manipulate_data(aset, set_data = {"bee","cee","dee"}):
set_data = {"bee","cee","dee"
As an occasional Python user, I'd like to be able to get for myself a
high-level overview of a package's capabilities. I can do this after a fashion
interactively in IPython using tab completes.
e.g.
import numpy as np
np. ---> Big list of capabilities, highlight one item
np.array --> Nothing
Grant Edwards wrote:
And don't get me started on those people who use those "integrated
circuits" instead of transistors, relays, and tubes...
Transistors? You don't know how good you had it.
In my day we had to poke the dopant atoms into
the silicon one at a time with the point of a
needle.
-
problem solved :_
I upgraded to 3.5.1 just released, and it works fine!
(except pillow and pygame installs still dont work, but that's not your
problem)
Enjoy the holidays
On 25 December 2015 at 14:12, Nicky Mac wrote:
> thanks again for continuing to address my problem.
> all those files are pr
On Dec 25, 2015 12:38 PM, "Chris Warrick" wrote:
>
> On 25 December 2015 at 13:15, Aaron Christensen
> wrote:
> > LOL. Thanks! PHP was definitely not very easy to pick up and I'm still
> > having some issues. Last night I watched some tutorials on Django and
plan
> > on reading all of the links
On Dec 25, 2015 12:22 PM, "Jason Friedman" wrote:
>
> >> I have a hunch that you do not want to write the program, nor do you
> >> want to see exactly how a programmer would write it?
> >>
> >> The question is more like asking a heart surgeon how she performs
> >> heart surgery: you don't plan to
On 25 December 2015 at 13:15, Aaron Christensen
wrote:
> LOL. Thanks! PHP was definitely not very easy to pick up and I'm still
> having some issues. Last night I watched some tutorials on Django and plan
> on reading all of the links on the docs page of Django. I will also look at
> your recomm
>> I have a hunch that you do not want to write the program, nor do you
>> want to see exactly how a programmer would write it?
>>
>> The question is more like asking a heart surgeon how she performs
>> heart surgery: you don't plan to do it yourself, but you want a
>> general idea of how it is do
I am developing an open source software for optimization purpose. We have
interface to a list of solvers or solver interfaces like Openopt, Cylp,
GLPK, CBC, SCip, Cplex, etc. Now the sponsor asks us to compile the python
code, and wrap all the third party tools with it so that they do not need
to i
thanks again for continuing to address my problem.
all those files are present as required.
This is a hard slog.
Maybe I should give up and fallback to my now working win 7 system
until a resolution crops up via an update/upgrade.
Have a happy and peaceful Christmas
On 24 December 2015 at 22:17,
LOL. Thanks! PHP was definitely not very easy to pick up and I'm still
having some issues. Last night I watched some tutorials on Django and plan
on reading all of the links on the docs page of Django. I will also look
at your recommendation. I think that will give me a good understanding.
Hopef
Great thank you! I will look into it. I watched some tutorials on Django
last night. It appears to be somewhat of a bootstrap but for the backend.
I'm not sure if my opinion is correct.
On Dec 25, 2015 5:27 AM, wrote:
> > On 25 December 2015 at 05:02, Aaron Christensen
> > wrote:
> >> Hi Chris,
Hi Jason,
What gives you that idea?
On Dec 25, 2015 12:23 AM, "Jason Friedman" wrote:
> > I am not sure if this is the correct venue for my question, but I'd like
> to
> > submit my question just in case. I am not a programmer but I do have an
> > incredible interest in it, so please excuse my
> On 25 December 2015 at 05:02, Aaron Christensen
> wrote:
>> Hi Chris,
>>
>> Thank you for your response and information. I enjoy doing Python on my
>> free time so when I get closer to some kind of web application, then I can
>> provide more information.
>>
>> Thanks for pointing me in the ri
[Forwarding your message to the mailing list — please use the Reply
All (or Reply to List) button in the future]
On 25 December 2015 at 05:02, Aaron Christensen
wrote:
> Hi Chris,
>
> Thank you for your response and information. I enjoy doing Python on my
> free time so when I get closer to some
30 matches
Mail list logo