You Are Here:

Community: Developer Discussion Boards

#1 Old Letter by letter analysis - 2007-11-24, 12:31

Join Date: Nov 2007
Posts: 6
richie.rich's Avatar
richie.rich
Offline
Registered User
Hello Forum!

I want to perform operations in a string

Code:
string = u"Hello How are you?"
Now I want to use the characters of the string differently!
As in suppose 1st I want to acces only 1st character that is "H"

The next time I want to access only the 2nd character i.e "e" and so on.I want to do this till the end of the string.Can any one of members suggest me a solution?
Also I want to know when the end of the string is approached.

Help will be appriciated.
Reply With Quote

#2 Old Re: Letter by letter analysis - 2007-11-24, 15:27

Join Date: Oct 2007
Posts: 2
grem03
Offline
Registered User
I guess you can work this out from the answer to your other question:

for i in range(0,len(string1)):
print string1[i]

..or..:

for i in string1:
print i
Reply With Quote

#3 Old Re: Letter by letter analysis - 2007-11-24, 16:47

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
@richie.rich:

Python S60 is based on a Python 2.2 version so you can have all info , reference and tutorial of this langage on the official Python site because you are asking for Python basic not specifically PyS60

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Some questions regaring text edit control(changing first letter to be low case) alexs@servision.net Symbian User Interface 1 2007-10-02 15:59
Code Analysis Tools mockba Symbian Tools & SDKs 1 2006-12-06 02:50
How to get a Letter from a TBuf descriptor class zhang2008 General Symbian C++ 2 2006-10-27 10:42
target drive letter for SISPATCH geran Symbian Tools & SDKs 0 2003-11-07 14:00
Hi, people. I still have problem with cirilic charaters in wml. May be Noki cyberpunkk Browsing and Mark-ups 2 2002-06-26 09:57

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia