Advertisement

10.01.2007 at 11:49PM PDT, ID: 22865657
[x]
Attachment Details

How do you substring in Python?

Asked by jamie_lynn in Python Scripting Language

Tags: python, substring

Hi,
I have a address "Santa Mora, AZ 86444
I want to substring this string into city, state and zip but what is the best way to do this?
Do I use partition, rfind, or or split?
Thanks
JamieStart Free Trial
 
Loading Advertisement...
 
[+][-]10.02.2007 at 12:11AM PDT, ID: 19996648

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.02.2007 at 12:48AM PDT, ID: 19996787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.02.2007 at 12:59AM PDT, ID: 19996818

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.02.2007 at 03:09AM PDT, ID: 19997224

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.02.2007 at 03:20AM PDT, ID: 19997257

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Python Scripting Language
Tags: python, substring
Sign Up Now!
Solution Provided By: pepr
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.02.2007 at 11:49PM PDT, ID: 20004416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628