Syver Enstad syver-en+usenet at
Wed Sep 25 10:57:18 EDT 2002

"Juliana Braga" <juliana at> writes:

> I need help.
> For example:
> x = ‘name1’
> How can I get the value of variable x (in this case the value of
> variable x
> is ‘name1’). After , I’d like to do this:
> value of variable x = ‘teste’.

I am not sure I understand what you mean, but here's a shot:

x = 'name1'
saved = x
x = 'teste'
print x
print saved

Hope this helps.


Vennlig hilsen 

Syver Enstad

More information about the Python-list mailing list