Replace dash values in a field with new line- VB equivalent of Python

2013-03-19 Thread Cathy James
Dear All, I need some assistance with Python so that values in the Name field e.g. Murray - James - Leo can be labeled as: Murray James Leo with a new line replacing every dash. Basically I need the equivalent of this VB in Python: replace ( [Name] , -, vbNewLine) I tried this but no luck:

Need Help Using list items as output table names in MsACCESS

2012-03-28 Thread Cathy James
Dear Python folks, I need your help on using list items as output table names in MsACCESS-new to Python- simple would be better: import arcpy, os outSpace = c:\\data\\Info_Database.mdb\\ arcpy.overwriteOutput = True SQL = Database Connections\\SDE_ReadOnly.sde\\ inFcList = [(SDE +

Please Help with vertical histogram

2011-07-11 Thread Cathy James
Please kindly help- i have a project where I need to plot dict results as a histogram. I just can't get the y- axis to print right. May someone please help? I have pulled my hair for the past two weeks, I am a few steps ahead, but stuck for now. def histo(his_dict = {1:16, 2:267, 3:267, 4:169,

Struggling with sorted dict of word lengths and count

2011-06-27 Thread Cathy James
Dear Python Programmers, I am a Python newby and I need help with my code: I have done parts of it but I can't get what I need: I need to manipulate text to come up with word lengths and their frequency:ie how many 1-letter words in a text how many 2-letter words in a text, etc I believe I am

search through this list's email archives

2011-06-23 Thread Cathy James
Dear All, I looked through this forum's archives, but I can't find a way to search for a topic through the archive. Am I missing something? Thanks as always. CJ. -- http://mail.python.org/mailman/listinfo/python-list

NEED HELP-process words in a text file

2011-06-18 Thread Cathy James
Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions. I am a Python newborn and need help with my function. I commented on my program as to what it should do, but nothing is printing. I know I am off, but not sure where. Please help:(

print header for output

2011-06-18 Thread Cathy James
Angelico)   7. NEED HELP-process words in a text file (Cathy James)   8. Re: NEED HELP-process words in a text file (Chris Rebert)   9. Re: NEED HELP-process words in a text file (Tim Chase) -- Forwarded message -- From: Terry Reedy tjre...@udel.edu To: python-list@python.org Date

Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Cathy James
I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have I done wrong? b) I would like to append to

Newby Python help needed with functions

2011-06-03 Thread Cathy James
I need a jolt here with my python excercise, please somebody!! How can I make my functions work correctly? I tried below but I get the following error: if f_dict[capitalize]: KeyError: function capitalize at 0x00AE12B8 Code below: def capitalize (s): capitalize accepts a string parameter

NEED HELP- read file contents, while loop to accept user input, and enter to exit

2011-05-24 Thread Cathy James
dear mentor, I need help with my code: 1) my program won't display file contents upon opening 2) my program is not writing to file 3) my program is not closing when user presses enter- gow do I do this with a while loop? please see my attempt below and help: #1) open file and display current

Re: NEED HELP- read file contents, while loop to accept user

2011-05-24 Thread Cathy James
for its development? (Chris Angelico) 4. NEED HELP- read file contents, while loop to accept user input, andenter to exit (Cathy James) 5. Re: NEED HELP- read file contents, while loop to accept user input,and enter to exit (Tim Golden) 6. Re: NEED HELP- read

MS Access table values as input into a formula in another table-need help!!

2011-01-30 Thread Cathy James
Dear Python Community, Table1: Prop_codeR_Value GC 0.8 CI 0.6 LDR 0.4 HDR 0.6 TR 0.65 CR 0.35 Table 2: O_ID PROP_CODE AI TArea R_Value Pre_R_Value IR MER02006 LDR 38.19235 132.3178 0.4 0.115456 0.555143 MER02006 TR 20.78983 132.3178 0.65 0.102128 0.555143 MER02006 UO 1.850129 132.3178 0.25

newby qn about functions

2011-01-18 Thread Cathy James
#This has to be very simple, but I don't get it-please help def *lower_case*(s): #return s print(s) #return s.lower() print(s.lower()) s=*Testing Functions-lower case: * lower_case(s) *how can i use a return statement to write a function that returns the string Testing

Functions Not Fun (yet)-please help!

2011-01-16 Thread Cathy James
Dear all, I can't thank you enough for taking time from your busy schedules to assist me (and others) in my baby steps with Python. Learning about functions now and wondering about some things commented in my code below. Maybe someone can break it down for me and show me why i cant print the

cipher encoding

2011-01-12 Thread Cathy James
Dear all, I hope someone out there can help me. The output string of my code is close to what i need, but i need it 1)printed on one line and 2) reversed #mycode: s= input(Enter message: ) key=1 for letter in s: num=(chr(ord(letter)+1)) print(num) #or is there a better way to rewrite

Help with code-lists and strings

2011-01-05 Thread Cathy James
Dear all, You folks will probably hear from me more often in the next few months. I hope some of you have time help me on occassion. Actually, a volunteer mentor would be greatly appreciated:) I am learning python and came across an excercise where i need to use lists to strip words from a

Re: Help with code-lists and strings

2011-01-05 Thread Cathy James
wrote: On 1/5/2011 12:57 PM, Cathy James wrote: I am learning python and came across an excercise where i need to use lists to strip words from a sentence; starting with those containing one or more uppercase letters, followed by words with lower case letters. When writing code