Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread عماد نوفل
2009/1/23 Emad Nawfal (عماد نوفل) > > > On Fri, Jan 23, 2009 at 8:04 PM, Andre Engels wrote: > >> 2009/1/24 Emad Nawfal (عماد نوفل) : >> > >> > >> > 2009/1/23 Emad Nawfal (عماد نوفل) >> >> >> >> >> >> On Fri, Jan 23, 2009 at 6:57 PM, Andre Engels >> >> wrote: >> >>> >> >>> I made an error in my

Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread عماد نوفل
On Fri, Jan 23, 2009 at 8:04 PM, Andre Engels wrote: > 2009/1/24 Emad Nawfal (عماد نوفل) : > > > > > > 2009/1/23 Emad Nawfal (عماد نوفل) > >> > >> > >> On Fri, Jan 23, 2009 at 6:57 PM, Andre Engels > >> wrote: > >>> > >>> I made an error in my program... Sorry, it should be: > >>> > >>> def has

Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread Andre Engels
2009/1/24 Emad Nawfal (عماد نوفل) : > > > 2009/1/23 Emad Nawfal (عماد نوفل) >> >> >> On Fri, Jan 23, 2009 at 6:57 PM, Andre Engels >> wrote: >>> >>> I made an error in my program... Sorry, it should be: >>> >>> def hasRoot(word, root): # This order I find more logical >>> loc = 0 >>> for lett

Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread عماد نوفل
2009/1/23 Emad Nawfal (عماد نوفل) > > > On Fri, Jan 23, 2009 at 6:57 PM, Andre Engels wrote: > >> I made an error in my program... Sorry, it should be: >> >> def hasRoot(word, root): # This order I find more logical >> loc = 0 >> for letter in root: >> loc = word.find(letter,loc) # I

Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread عماد نوفل
On Fri, Jan 23, 2009 at 6:57 PM, Andre Engels wrote: > I made an error in my program... Sorry, it should be: > > def hasRoot(word, root): # This order I find more logical > loc = 0 > for letter in root: > loc = word.find(letter,loc) # I missed the ,loc here... > if loc == -1:

Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread Andre Engels
I made an error in my program... Sorry, it should be: def hasRoot(word, root): # This order I find more logical loc = 0 for letter in root: loc = word.find(letter,loc) # I missed the ,loc here... if loc == -1: return false return true # main infile = open("my

Re: [Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread Andre Engels
On Sat, Jan 24, 2009 at 12:02 AM, Emad Nawfal (عماد نوفل) wrote: > Hello Tutors, > Arabic words are build around a root of 3 or 4 consonants with lots of > letters in between, and also prefixes and suffixes. > The root ktb (write) for example, could be found in words like: > ktab : book > mktob: l

[Tutor] finding words that contain some letters in their respective order

2009-01-23 Thread عماد نوفل
Hello Tutors, Arabic words are build around a root of 3 or 4 consonants with lots of letters in between, and also prefixes and suffixes. The root ktb (write) for example, could be found in words like: ktab : book mktob: letter, written wktabhm: and their book yktb: to write lyktbha: in order for hi