Re: Newby - is this what they are looking for ?? and is their a better a way

2009-02-24 Thread Chris Rebert
On Tue, Feb 24, 2009 at 4:54 AM, Gary Wood woody...@sky.com wrote: ''' program. 1.What type of data will the input be? What type of data will the output be? 2.Get the phrase from the user. 3.Convert to upper case. 4.Divide the phrase into words. 5.Initialize a new empty list, letters. 6.Get

Newby - is this what they are looking for ?? and is their a better a way

2009-02-24 Thread Gary Wood
''' program. 1.What type of data will the input be? What type of data will the output be? 2.Get the phrase from the user. 3.Convert to upper case. 4.Divide the phrase into words. 5.Initialize a new empty list, letters. 6.Get the first letter of each word. 7.Append the first letter to the

Re: Newby - is this what they are looking for ?? and is their a better a way

2009-02-24 Thread Tim Rowe
You're doing well so far. As Chris has said, you need to read the later part of the question more carefully. A couple of other things: 1. 'input' might not be the best way to get the phrase, because the user will have to put the phrase in quotes or the program will (probably) crash. Have a look

Re: Newby - is this what they are looking for ?? and is their a better a way

2009-02-24 Thread Peter Otten
Tim Rowe wrote: 1. 'input' might not be the best way to get the phrase, because the user will have to put the phrase in quotes or the program will (probably) crash. Have a look at raw_input. Gary is using Python 3 where input() works like the raw_input() of yore. The giveaway is print(word,