Re: Can someone help please

2011-07-21 Thread Gary Wood
Hi Thanks for your reply's and sorry guys for not explaining properly ok the problem with the code, which i never realised before, is it sends the first txt file as the header or subject field in an email and the rest in the body of the email which i don't want. I would like all the txt files in

Hands on Python - Problem with Local Cgi Server

2009-03-31 Thread Gary Wood
I have the DOS box with the message Localhost CGI server started But when i try this Back in the www directory, 1.. Open the web link http://localhost:8080/adder.html (preferably in a new window, separate from this this tutorial). 2.. You should see an adder form in your browser

can someone help me (again) stuck on ' hands on python'

2009-03-19 Thread Gary Wood
#I adjusted the 2nd main function so i test what im trying to do can someone point me in the right direction please Exercise 2.3.3.1. ** Rename the example file locationsStub.py to be locations.py, and complete the function printLocations, to print the index of each location in the string

Newbie : this works in one direction but get the error on the return path

2009-02-25 Thread Gary Wood
'''Test animation of a group of objects making a face. Combine the face elements in a function, and use it twice. Have an extra level of repetition in the animation. ''' from graphics import * import time def moveAll(shapeList, dx, dy): ''' Move all shapes in shapeList by (dx, dy).'''

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

Can someone tell me why i get None at the end please this has me stuck for ages

2009-02-23 Thread Gary Wood
'''exercise to complete and test this function''' import string def joinStrings(items): '''Join all the strings in stringList into one string, and return the result. For example: print joinStrings(['very', 'hot', 'day']) 'veryhotday' ''' word = [items] for item in

thanks very much indeed for your help is there a better way to do this (python3) newby

2009-02-23 Thread Gary Wood
'''exercise to complete and test this function''' import string def joinStrings(items): '''Join all the strings in stringList into one string, and return the result. For example: print joinStrings(['very', 'hot', 'day']) 'veryhotday' ''' for i in items: return

[no subject]

2009-02-19 Thread Gary Wood
I'm stuck on a tutorial Hands on Python3 Exercise 1.13.7.3. ** Complete the following function. This starting code is in joinAllStub.py. Save it to the new name joinAll.py. Note the way an example is given in the documentation string. It simulates the use of the function in the Shell. This is

python3 tutorial for newbie

2009-02-10 Thread Gary Wood
Can someone recommend a good tutorial for Python 3, ideally that has tasks or assignments at the end of each chapter. Please, -- http://mail.python.org/mailman/listinfo/python-list