[Tutor] inquire

Moshe Zadka moshez@zadka.site.co.il
Sat, 13 Jan 2001 11:53:56 +0200 (IST)


On Thu, 11 Jan 2001, "XIA Xiao-Qin" <XQ.Xia@ccsr.cam.ac.uk> wrote:

> Does python offer the function like the "&" in FoxPro? 
> i.e. in foxpro, some code like following:
> 
>             a="I am a"
>             b="a"
>             print &b
> 
> may print the content of variable a.

As a first approximation, try

print eval(b)

-- 
Moshe Zadka <sig@zadka.site.co.il>
This is a signature anti-virus. 
Please stop the spread of signature viruses!