[Tutor] Evaluating a string expression
by Mkhanyisi Madlavana other posts by this author
Nov 5 2009 5:18AM messages near this date
Re: [Tutor] Retrieving information from a plain text file(WinXP/py2.6.2/Beginner)
|
Re: [Tutor] Evaluating a string expression
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?
Thanks
Mkhanyisi
_______________________________________________
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
|