Re: [Tutor] New to Programming: TypeError: coercing to Unicode: need string or buffer, list found

2015-04-02 Thread Saran Ahluwalia
Danny, You were spot on with that issue. I debugged this. Here are my two commits for my homework: Starting with pyinotify and OS agnostic?

Re: [Tutor] New to Programming: TypeError: coercing to Unicode: need string or buffer, list found

2015-04-02 Thread Dave Angel
On 04/02/2015 08:28 AM, Saran Ahluwalia wrote: Good Morning: I understand this error message when I run this code. However, I am curious to know what the most pythonic way is to convert the list to a string? I use Python 2.7. "Traceback (most recent call last): before = dict([(f, None) for f i

Re: [Tutor] New to Programming: TypeError: coercing to Unicode: need string or buffer, list found

2015-04-02 Thread Danny Yoo
On Thu, Apr 2, 2015 at 12:19 PM, Saran Ahluwalia wrote: > Danny, > > You were spot on with that issue. I debugged this. Here are my two commits > for my homework: Starting with pyinotify and OS agnostic? I am still working > on the latter - in regards to adding more customization that fits the > h

Re: [Tutor] New to Programming: TypeError: coercing to Unicode: need string or buffer, list found

2015-04-02 Thread Danny Yoo
On Apr 2, 2015 9:45 AM, "Saran Ahluwalia" wrote: > > Good Morning: > > I understand this error message when I run this code. However, I am curious > to know what the most pythonic way is to convert the list to a string? I > use Python 2.7. > > "Traceback (most recent call last): > before = dict([

Re: [Tutor] new to programming and wondering about an IDE for Python on Linux

2012-03-01 Thread Steven D'Aprano
On Mon, Feb 27, 2012 at 07:22:20AM -0800, John Jensen wrote: > Hi All, > > I'm new to programming and wondering about an IDE for Python on Linux. > I'd appreciate any feedback on this and good tutorials or books on > Python 3 and the IDEs suggested. There are many available and I'm > wondering

Re: [Tutor] new to programming and wondering about an IDE for Python on Linux (Robert Sjoblom)

2012-02-28 Thread Joaquim Santos
-- > > Message: 1 > Date: Mon, 27 Feb 2012 20:10:42 +0100 > From: Robert Sjoblom > To: Alan Gauld > Cc: tutor@python.org > Subject: Re: [Tutor] new to programming and wondering about an IDE for >P

Re: [Tutor] new to programming and wondering about an IDE for Python on Linux

2012-02-27 Thread Robert Sjoblom
>> I'd appreciate any feedback on this and good tutorials or books on >> Python 3 and the IDEs suggested. There are many available and I'm >> wondering what you as users find effective. I fiddled a bit with the Eric Python IDE; Eric5 for Python3 and Eric4 for Python2; overall I'd say that Eclipse

Re: [Tutor] new to programming and wondering about an IDE for Python on Linux

2012-02-27 Thread Alan Gauld
On 27/02/12 15:22, John Jensen wrote: I'm new to programming and wondering about an IDE for Python on Linux. Linux is an IDE :-) But, smiley's aside it's true. You can use basic tools like vim, emacs and terminal windows etc. To cut n paste between them is trivial (Much more so than in Window

Re: [Tutor] New to programming

2011-03-18 Thread Alan Gauld
"Savyn - OpenERP Mail" wrote I am new to programming (a passion mainly). I have no background in programming. Check out the Non Programmers section of the Python web site it has several tutorials designed for complete beginners. The official tutorioal is really for those who can already

Re: [Tutor] New to programming

2011-03-18 Thread Ken G.
You may want to check out a short article entitled "Instant Hacking" by Magnus Lie Hetland. It is an introduction to programming using Python as an example. In the first paragraph thereby mentioned, there is a link to another easy article titled "Instant Python" written by the same author. H

Re: [Tutor] New to programming

2011-03-18 Thread Donald Bedsole
Hi, Welcome to the list: On Fri, Mar 18, 2011 at 7:48 PM, Savyn - OpenERP Mail wrote: > Dear Everyone > > I am new to programming (a passion mainly). I have no background in > programming.  The python.org beginner tutorial seems hard after a few > chapters or not sure how to merge requirement w

Re: [Tutor] New to Programming

2010-06-14 Thread cristeto1981
Dave Angel wrote: > > Kaushal Shriyan wrote: >> Hi, >> >> I am absolutely new to programming language. Dont have any programming >> experience. Can some one guide me please. is python a good start for >> novice. >> >> Thanks, >> >> Kaushal >> >> > Like nearly all questions, the answer is "it

Re: [Tutor] New to Programming

2010-06-13 Thread Kaushal Shriyan
On Sun, Jun 13, 2010 at 1:33 AM, Alan Gauld wrote: > > "Kaushal Shriyan" wrote > >> I am absolutely new to programming language. Dont have any programming >> experience. Can some one guide me please. is python a good start for >> novice. > > Yes, it is one of the best languages for an absolute be

Re: [Tutor] New to Programming

2010-06-13 Thread Kaushal Shriyan
On Sat, Jun 12, 2010 at 4:04 PM, Dave Angel wrote: > Kaushal Shriyan wrote: >> >> Hi, >> >> I am absolutely new to programming language. Dont have any programming >> experience. Can some one guide me please. is python a good start for >> novice. >> >> Thanks, >> >> Kaushal >> >> > > Like nearly al

Re: [Tutor] New to Programming

2010-06-12 Thread Alan Gauld
"Kaushal Shriyan" wrote I am absolutely new to programming language. Dont have any programming experience. Can some one guide me please. is python a good start for novice. Yes, it is one of the best languages for an absolute beginner. It may be all the language you ever need but even if you

Re: [Tutor] New to Programming

2010-06-12 Thread Dave Angel
Kaushal Shriyan wrote: Hi, I am absolutely new to programming language. Dont have any programming experience. Can some one guide me please. is python a good start for novice. Thanks, Kaushal Like nearly all questions, the answer is "it depends." Mainly, it depends on what your goal is.

Re: [Tutor] New to programming and python first minimilistic program (Bottles of beer), , please comment!

2009-06-17 Thread Emile van Sebille
On 6/17/2009 1:46 PM matthew andriani said... Hi Guys, I wrote this program for some practice to get into python..I'm trying to find fun ways to learn the language so if anyone has a challenge on this basic level using loops that sounds exciting please let me know.. Exciting? How about wri

Re: [Tutor] New to programming and python first minimilistic program (Bottles of beer), , please comment!

2009-06-17 Thread Gregor Lingl
matthew andriani schrieb: Hi Guys, I wrote this program for some practice to get into python..I'm trying to find fun ways to learn the language so if anyone has a challenge on this basic level using loops that sounds exciting please let me know.. If you think this program can be improved ple

Re: [Tutor] New to programming and python first minimilistic program (Bottles of beer), , please comment!

2009-06-17 Thread vince spicer
Like in any language there any number for ways, heres another b = "bottles of beer" w = "on the wall" bottles = range(1, 101) bottles.reverse() for bottle in bottles: print " %s %s %s if one of those bottles should happen to fall there'll be %s %s %s" % (bottle, b,w, bottle-1, b,w) Vince 200

Re: [Tutor] New to programming and Python

2006-10-26 Thread Danny Yoo
On Thu, 26 Oct 2006, Jorge Azedo wrote: First off, I don't know if I'm doing this right, I've never used a mailing list before, so I'm not sure if I'm sending this to the right place. Thanks for all the help you guys gave me ( e vocês também pessoal, é bom saber que há pessoal português po

Re: [Tutor] New to programming and Python

2006-10-26 Thread Jorge Azedo
First off, I don't know if I'm doing this right, I've never used a mailing list before, so I'm not sure if I'm sending this to the right place. Thanks for all the help you guys gave me ( e vocês também pessoal, é bom saber que há pessoal português por aqui :-) ). I'll try and read as many tutor

Re: [Tutor] New to programming and Python (Jorge Azedo)

2006-10-26 Thread Kent Johnson
tando [EMAIL PROTECTED]: >> >> >>>>2. New to programming and Python (Jorge Azedo) >>>> >>>7. Re: New to programming and Python (rolando) >>> >>> >>> Date: Thu, 26 Oct 2006 09:44:41 +0100 >>> From: rol

Re: [Tutor] New to programming and Python (Jorge Azedo)

2006-10-26 Thread rolando
> Força, isto no inicio parece confuso, mas breve faz-se luz! > > Paulino > > > Citando [EMAIL PROTECTED]: > > >>>2. New to programming and Python (Jorge Azedo) >>> >>7. Re: New to programming and Python (rolando) >> >> >

Re: [Tutor] New to programming and Python (Jorge Azedo)

2006-10-26 Thread paulino1
: Thu, 26 Oct 2006 09:44:41 +0100 > From: rolando <[EMAIL PROTECTED]> > Subject: Re: [Tutor] New to programming and Python > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Jorge Azedo escreve

Re: [Tutor] New to programming and Python

2006-10-26 Thread Kent Johnson
Jorge Azedo wrote: > Hi guys ( and gals ) > > I'm totally new to the whole programming scene (I decided to enter it > for many reasons, one of which is the fact that I *want* to know how to > program my computer) and I decided to start out with Python. I'm reading > lots of tutorials on it, try

Re: [Tutor] New to programming and Python

2006-10-26 Thread rolando
Jorge Azedo escreveu: > Hi guys ( and gals ) > > I'm totally new to the whole programming scene (I decided to enter it > for many reasons, one of which is the fact that I *want* to know how to > program my computer) and I decided to start out with Python. I'm reading > lots of tutorials on it, t

Re: [Tutor] New to programming and Python

2006-10-26 Thread Chris Hengge
I'm sure I speak for us all when I ask what sort of things are giving you problems? Maybe that would help us point you in the right direction. Good Luck!On 10/25/06, Jorge Azedo <[EMAIL PROTECTED]> wrote: Hi guys ( and gals )I'm totally new to the whole programming scene (I decided to enter itfor

Re: [Tutor] New to programming question (Ben M.) (Joseph Q.)

2005-04-14 Thread Brian van den Broek
Joseph Quigley said unto the world upon 2005-04-14 10:46: >Do you see? The == "binds more tightly" than the or. And, in python, 'Q' is >considered True for the purposes of tests. >What you can do instead is this: > >for letter in prefixes: >if letter in ['O', 'Q']: >print le

Re: [Tutor] New to programming question (Ben M.) (Joseph Q.)

2005-04-14 Thread joe_schmoe
Joseph Quigley wrote: if letter == 'O': >print letter + 'u' + suffix >elif 'Q': >print letter + 'u' + suffic >else: >print letter + suffix > >Do you see? The == "binds more tightly" than the or. And, in python, 'Q' is >considered True for the purposes of tests. > >So t

Re: [Tutor] New to programming question (Ben M.) (Joseph Q.)

2005-04-14 Thread Joseph Quigley
if letter == 'O': >print letter + 'u' + suffix >elif 'Q': >print letter + 'u' + suffic >else: >print letter + suffix > >Do you see? The == "binds more tightly" than the or. And, in python, 'Q' is >considered True for the purposes of tests. > >So this is what happens: > prefix

Re: [Tutor] New to programming question (Ben M.) (Joseph Q.)

2005-04-13 Thread Ben Markwell
Thanks for everybodys input. Am learning slowly but surely. Ben On 4/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:Quoting Joseph Quigley <[EMAIL PROTECTED] >:> prefixes = 'JKLMNOPQ'> suffix = 'ack'>> for letter in prefixes:>  if letter == ('O') or ('Q'):>   print letter + 'u' + suffix> 

Re: [Tutor] New to programming question (Ben M.) (Joseph Q.)

2005-04-13 Thread jfouhy
Quoting Joseph Quigley <[EMAIL PROTECTED]>: > prefixes = 'JKLMNOPQ' > suffix = 'ack' > > for letter in prefixes: > if letter == ('O') or ('Q'): > print letter + 'u' + suffix > else: > print letter + suffix Hi Joseph, This still won't work. The reason is that your if statement is

Re: [Tutor] New to programming question (Ben M.) (Joseph Q.)

2005-04-13 Thread Joseph Quigley
>Well you did come up with a way that would work sort of and you seem to be >ont eh right track. I would make 1 small change if using your approach. > >prefixes = 'JKLMNOPQ' >suffix = 'ack' > >for letter in prefixes: > if letter == 'O' or letter == 'Q': print letter + 'u' + suffix > else: print l

Re: [Tutor] New to programming question

2005-04-12 Thread Brian van den Broek
Ben Markwell said unto the world upon 2005-04-12 12:56: This is an exercise from "How to think like a Computer Scientist." The following example shows how to use concatenation and a for loop to generate an abecedarian series. "Abecedarian" refers to a series or list in which the elements appear i