Variables

Richard Blackwood richardblackwood at cloudthunder.com
Sat Apr 23 23:23:42 EDT 2005


Steven Bethard wrote:

> Richard Blackwood wrote:
>
>> Indeed, this language is math. My friend says that foo is a constant 
>> and necessarily not a variable. If I had written foo = raw_input(), 
>> he would say that foo is a variable.
>
>
> Then what does he say if you write:
>
> foo = 5
> foo = 6
>
> ?
>
> STeVe

He says that foo is a constant. At first it was a constant which equaled 
5, then it was a constant that equaled 6.



More information about the Python-list mailing list