Re: convert a string to a variable

2018-05-25 Thread Ned Batchelder
On 5/25/18 9:52 AM, brucegoodst...@gmail.com wrote: On Friday, May 25, 2018 at 8:06:31 AM UTC-4, Ned Batchelder wrote: On 5/24/18 6:54 PM, bruceg113...@gmail.com wrote: I am trying to convert a string to a variable. I got cases 1 & 2 to work, but not cases 3 & 4. The print statement

Re: convert a string to a variable

2018-05-25 Thread brucegoodstein
On Friday, May 25, 2018 at 8:06:31 AM UTC-4, Ned Batchelder wrote: > On 5/24/18 6:54 PM, bruceg113...@gmail.com wrote: > > I am trying to convert a string to a variable. > > > > I got cases 1 & 2 to work, but not cases 3 & 4. > > > > The print state

Re: convert a string to a variable

2018-05-25 Thread brucegoodstein
On Friday, May 25, 2018 at 1:56:14 AM UTC-4, dieter wrote: > bruceg113...@gmail.com writes: > > > I am trying to convert a string to a variable. > > > > I got cases 1 & 2 to work, but not cases 3 & 4. > > > > The print st

Re: convert a string to a variable

2018-05-25 Thread Ned Batchelder
On 5/24/18 6:54 PM, bruceg113...@gmail.com wrote: I am trying to convert a string to a variable. I got cases 1 & 2 to work, but not cases 3 & 4. The print statement in cases 3 & 4 reports the following: builtins.AttributeError: type object 'animal' has no attrib

Re: convert a string to a variable

2018-05-24 Thread dieter
bruceg113...@gmail.com writes: > I am trying to convert a string to a variable. > > I got cases 1 & 2 to work, but not cases 3 & 4. > > The print statement in cases 3 & 4 reports the following: > builtins.AttributeError: type object 'animal' has no

convert a string to a variable

2018-05-24 Thread bruceg113355
I am trying to convert a string to a variable. I got cases 1 & 2 to work, but not cases 3 & 4. The print statement in cases 3 & 4 reports the following: builtins.AttributeError: type object 'animal' has no attribute 'tiger' I am stuck on creating v