Hi @ananth.ch:

`.shape`

is not a supported method of `exec()`

as detailed in this article thus you will have to the use the old fashion way.

Before using any methods inside the exec() function one must keep in mind about what all functions do exec() support. To view this we may use dir() function.

List of supported functions:

```
['__builtins__', '__cached__', '__doc__', '__file__',
'__loader__', '__name__', '__package__', '__spec__',
'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2',
'atanh', 'ceil', 'copysign', 'cos', 'cosh', 'degrees',
'e', 'erf', 'erfc', 'exp', 'expm1', 'fabs', 'factorial',
'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd',
'hypot', 'inf', 'isclose', 'isfinite', 'isinf',
'isnan', 'ldexp', 'lgamma', 'log', 'log10', 'log1p',
'log2', 'modf', 'nan', 'pi', 'pow', 'radians', 'sin',
'sinh', 'sqrt', 'tan', 'tanh', 'trunc']
```

`happiness2015`

and so on are **variables** thus treating them as strings will not retrieve the value stored as intended. Thus, you cannot use a loop to iterate over and attempt to automate and extract and store each `shape`

attribute in another variable