Re: Changing numbers into characters using dictionaries

2006-01-26 Thread Colin Fox
On Thu, 26 Jan 2006 20:35:26 +, Danny wrote: > Hello again, > > I am now trying to make something to change some "encrypted" text into > some plain text, here is the code I have so far: > > text = '@[EMAIL PROTECTED]@[EMAIL PROTECTED]' // some text > num = '213654' // Number > s1 = '700' >

Re: Changing numbers into characters using dictionaries

2006-01-26 Thread snoe
Ok there's a couple things going on here. > t = text.split('@') // splits the digits/blocks apart from each other this will give you a list: ['', '7706', '7002', '7075', '7704'] You may want to change the line to skip the first empty value: t = text.split('@')[1:] Next your loop. > something = 1

Re: Changing numbers into characters using dictionaries

2006-01-26 Thread Larry Bates
Danny wrote: > Hello again, > > I am now trying to make something to change some "encrypted" text into > some plain text, here is the code I have so far: > > text = '@[EMAIL PROTECTED]@[EMAIL PROTECTED]' // some text > num = '213654' // Number > s1 = '700' > s2 = '770' > s4 = '707' // it adds t

Changing numbers into characters using dictionaries

2006-01-26 Thread Danny
Hello again, I am now trying to make something to change some "encrypted" text into some plain text, here is the code I have so far: text = '@[EMAIL PROTECTED]@[EMAIL PROTECTED]' // some text num = '213654' // Number s1 = '700' s2 = '770' s4 = '707' // it adds these later on. t = text.split('@')