Re: [Tutor] Evaluating a string expression
by Tim Golden other posts by this author
Nov 5 2009 5:25AM messages near this date
Re: [Tutor] Evaluating a string expression
|
Re: [Tutor] Evaluating a string expression
Mkhanyisi Madlavana wrote:
> Hi Everyone,
>
> I would like to know how would I evaluate a string expression in python.
> For example, if i say:
> >>> a = "3*2"
> I want to do something to evaluate the variable 'a' to give me 6. How
> can I do this?
I'm afraid that your question doesn't pass the basic "Have I Googled it?"
test. I stuck "evaluate a string expression in python" into Google and got:
http://www.google.co.uk/#q=evaluate+a+string+expression+in+python
Does any of that help?
TJG
_______________________________________________
Tutor maillist - Tutor@[...].org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Thread:
Mkhanyisi Madlavana
Modulok
Alan Gauld
Kent Johnson
Modulok
Tim Golden
Serdar Tumgoren
Serdar Tumgoren
Mkhanyisi Madlavana
|