Re: Are there any other better ways to access a single bit of string of digits?

2015-05-31 Thread fl
On Sunday, May 31, 2015 at 12:53:19 PM UTC-7, Denis McMahon wrote: > On Sun, 31 May 2015 11:36:35 -0700, fl wrote: > > I am new to Python. I would manipulate a string of hex numbers. If the > > first digit is bigger than 7, the first two digits are required to add > > 4. > What happens if the first

Re: Are there any other better ways to access a single bit of string of digits?

2015-05-31 Thread Denis McMahon
On Sun, 31 May 2015 11:36:35 -0700, fl wrote: > I am new to Python. I would manipulate a string of hex numbers. If the > first digit is bigger than 7, the first two digits are required to add > 4. What happens if the first two digits are ff, does it become 103 or 03. If you have __

Are there any other better ways to access a single bit of string of digits?

2015-05-31 Thread fl
Hi, I am new to Python. I would manipulate a string of hex numbers. If the first digit is bigger than 7, the first two digits are required to add 4. For example, '8022_3345' will be changed to '8422_3345'. The underscore between two 4-digit's was generated previously (i.e. it is already in the .