[Tutor] the 'or' attribute
Zak Arntson
zak at harlekin-maus.com
Tue Dec 9 20:58:12 EST 2003
> Umm....okay , I get it. So, how can i have a variable that stores ' this
> number, or that number' ?
You have to be more specific. That's like telling the person behind the
counter you want "vanilla or chocolate ice cream." That person won't be
able to hand you your ice cream until you've made a definite decision.
Python is standing behind the counter, and you've got to tell it which
number you want.
Variables can only store one value at a time.
###
>>> a = 1
>>> a
1
>>> a = 2
>>> a
2
###
---
Zak Arntson
www.harlekin-maus.com - Games - Lots of 'em
More information about the Tutor
mailing list