"Sean Carolan" wrote
Run it by itself and there's no output:
testNestEggFixed
Try to print it and it throws this error:
print testNestEggFixed
What am I missing here?
parentheses?
I assume you are from a Visual VBasic background?
Unlike VB Python requires you to have the parentheses
af
"Daniel" wrote
Python website, but I have a question regarding it. With what book I
should
start learning Python? Or should I take them in the order they are
presented
there on the website?I have no previous programming experience,
thanks.
Don't try to read them all!
They all present much
The University of Toronto Department of Physics brings PyCamp to Toronto
on Monday, August 30 through Friday, September 3, 2010.
Register today at http://trizpug.org/boot-camp/torpy10/
For beginners, this ultra-low-cost Python Boot Camp makes you productive
so you can get your work done quickl
On Thu, Jul 15, 2010 at 5:22 PM, Eric Hamiter wrote:
> As a fellow complete beginner, I have actually started a web site that
> details just this. I'm learning as I go and have tried to put together
> a curriculum of sorts that will helpfully guide other newbies as well,
> and reinforce what I'm l
I've found "Snake Wrangling for Kids" http://code.google.com/p/swfk/ by
Jason Biggs an easy, fun and understandable free e-book. I also have
started reading "Head First Programming" from O'Reilly which teaches
programming using Python. I have others also but those two have been the
easiest to re
yep, i noticed. ;^)
no prob, through your help, it is working the way i needed.
thanks
>> print "[%s]" % ('-'.join([hex(v) for v in theValue]) )
> Oops, that leaves 0x at the front of each byte.
> You could strip that off with
> print "[%s]" % ('-'.join([hex(v)[2:] for v in theValue]) )
On Thu, Jul 15, 2010 at 5:22 PM, Eric Hamiter wrote:
> Hi Daniel,
>
> As a fellow complete beginner, I have actually started a web site that
> details just this. I'm learning as I go and have tried to put together
> a curriculum of sorts that will helpfully guide other newbies as well,
> and reinf
On Fri, Jul 16, 2010 at 2:37 AM, Daniel wrote:
> Hello, I recently browsed the BeginnersGuide/NonProgrammers section of the
> Python website, but I have a question regarding it. With what book I should
> start learning Python? Or should I take them in the order they are presented
> there on the w
'Building Skills in Python" by Steven Lott, This free book is simply awesome
http://homepage.mac.com/s_lott/books/python.html
I went thru the "short" books first : "Dive Into Python" and "Byte of
Python" - they are good for a bit of foundation then come to this one,
and this one rreinforces concep
Hi Daniel,
As a fellow complete beginner, I have actually started a web site that
details just this. I'm learning as I go and have tried to put together
a curriculum of sorts that will helpfully guide other newbies as well,
and reinforce what I'm learning for myself.
http://letslearnpython.com/
Hello, I recently browsed the BeginnersGuide/NonProgrammers section of the
Python website, but I have a question regarding it. With what book I should
start learning Python? Or should I take them in the order they are presented
there on the website?I have no previous programming experience, thanks.
I will spilt it up and add comments.
Books =\ #Assign to Books
[Book('War & Peace", [3, 56, 88]), #The first is a Book named 'War & Peace'
Book("Huck Finn", [2, 5, 19])] #You use the book class twice in a row, one
for each book
On Thu, Jul 15, 2010 at 8:09 AM, Payal wrote:
> On Tue, Jul 13, 201
On 7/15/2010 11:32 AM Mary Morris said...
Hi,
I'm working on a program that parses through all of our source code at my
office and i need to get my code to print a list of the decorators. I used
a find(@) to locate all the decorators, but I need to assign them to a
variable somehow to get it to
Hi,
I'm working on a program that parses through all of our source code at my
office and i need to get my code to print a list of the decorators. I used
a find(@) to locate all the decorators, but I need to assign them to a
variable somehow to get it to print a list. How do I do this? How do I
ass
On 7/15/2010 11:07 AM Sean Carolan said...
Try to print it and it throws this error:
print testNestEggFixed
That's not an error -- that's what testNestEggFixed -- a function
located at 0x0214D5F0. If you intended to _execute_ the function, add
parens and the appropriate parameters to you
Spoiler alert: This was encountered while working on MIT OCW 6.000
problem set 4.
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/ps4.py
My function returns a list as it should:
#
On 15 July 2010 17:21, Jim Byrnes wrote:
> Adam Bark wrote:
>
>> On 14 July 2010 17:41, Jim Byrnes wrote:
>>
>> Adam Bark wrote:
>>>
>>> On 14 July 2010 02:53, Jim Byrnes wrote:
Adam Bark wrote:
>
>
>
>
> If I use the terminal to start the program it has
Adam Bark wrote:
On 14 July 2010 17:41, Jim Byrnes wrote:
Adam Bark wrote:
On 14 July 2010 02:53, Jim Byrnes wrote:
Adam Bark wrote:
If I use the terminal to start the program it has no problem using the
file. There are multiple files in multiple directories so I was
lookin
So my new internship asked me to write a program that would parse through
all of our source code on an svn server, find all the decorators and print
them. I found all of the decorators by finding the '@' symbol. What I still
have to do is write something that will make the computer print all of th
On Tue, Jul 13, 2010 at 08:35:45AM +0100, Alan Gauld wrote:
> If the data gets more complex you could put the data into a class:
>
> class Book:
> def __init__(self, title, pages=[]):
> self.title = title
> self.pages = pages
>
> Books = [ Book('War & Peace", [3,56,88]),
>
> print "[%s]" % ('-'.join([hex(v) for v in theValue]) )
Oops, that leaves 0x at the front of each byte.
You could strip that off with
print "[%s]" % ('-'.join([hex(v)[2:] for v in theValue]) )
Sorry,
Alan G.
___
Tutor maillist - Tutor@python.o
thanks,
def conv_tst(bytes)
return ('-'.join([binascii.hexlify(v) for v in bytes]))
i ended up experimenting with the suggestions and the above returns what i'm
looking for, i.e., the formatted mac addr to store in a sqlite db.
i'm sure there are other ways, though the abov
22 matches
Mail list logo