[Tutor] names

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Thu Sep 2 20:22:34 CEST 2004



On Mon, 30 Aug 2004, Diana Furr wrote:

> How do you get Python to let name=(anyone's name)
>
> I saw some posts on this subject but didn't find an answer.


Hi Diana,


Can you point us to one of those posts?  I'm not quite sure what you mean
yet, and maybe the context will help.


Are you trying to do something like this?

###
>>> game = "frogger"
>>> game
'frogger'
###

Here, we can assign the string value "frogger" to the variable name
'game'.  Is this what you're looking for?



More information about the Tutor mailing list