Tim Roberts wrote:
Scott David Daniels wrote:
I avoid using single-letter variables except where I know the types
from the name (so I use i, j, k, l, m, n as integers, s as string,
and w, x, y, and z I am a little looser with (but usually float or
complex).
It's amazing to me that Fortran con
Tim Roberts wrote:
> Scott David Daniels wrote:
>> I avoid using single-letter variables except where I know the types
>>from the name (so I use i, j, k, l, m, n as integers, s as string,
>> and w, x, y, and z I am a little looser with (but usually float or
>> complex).
>
> It's amazing to me tha
Scott David Daniels wrote:
>
>I avoid using single-letter variables except where I know the types
>from the name (so I use i, j, k, l, m, n as integers, s as string,
>and w, x, y, and z I am a little looser with (but usually float or
>complex).
It's amazing to me that Fortran continues to live on
On Dec 27, 8:52 am, David Lemper wrote:
> I'm a newbee trying 3.0 Please help with math.sqrt()
math.sqrt() is not the problem.
> At the command line this function works correctly
> >>> import math
> n = input("enter a number > ")
> s = math.sqrt(n)
> An e
En Fri, 26 Dec 2008 19:52:24 -0200, escribió:
I'm a newbee trying 3.0 Please help with math.sqrt()
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
Y
On Fri, Dec 26, 2008 at 1:52 PM, wrote:
> I'm a newbee trying 3.0 Please help with math.sqrt()
>
> At the command line this function works correctly
> >>> import math
> n = input("enter a number > ")
raw_input() was renamed input() in Python 3.0, and it returns a
*string*, n
David Lemper wrote:
I'm a newbee trying 3.0 Please help with math.sqrt()
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 sc
I'm a newbee trying 3.0 Please help with math.sqrt()
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 error mess