David Lemper wrote:
>
>I cannot find a mention of this in "The Python Tutorial
>release 3.1" The I&O section discusses output formatting
>and reading & writing text files.
>John pointed out its in Guido's "What's New in Python3.0"
>Indeed its mentioned in PEP 3111, near end of What's New
>and s
On Dec 27, 1:34 pm, David Lemper wrote:
>
> Problem is the new input() function. Yields a string.
>
> Thanks to Scott, Chris, Gabriel & John.
>
> Some thought I was not using the Python 3 command line.
> I was : Python 3.0 (r30:67507...
> Erratic behavior was that I was sometimes using n = input()
On Fri, 26 Dec 2008 20:34:45 -0600, David Lemper wrote:
> On Fri, 26 Dec 2008 15:52:24 -0600, David Lemper wrote:
>
>>At the command line this function works correctly
>> >>> import math
>> n = input("enter a number > ")
>> s = math.sqrt(n)
>> An entry of 9 or 9
On Fri, 26 Dec 2008 15:52:24 -0600, David Lemper wrote:
>At the command line this function works correctly
> >>> import math
> n = input("enter a number > ")
> s = math.sqrt(n)
> An entry of 9 or 9.0 will yield 3.0
>
>Yet the same code in a script gives an erro