On Aug 19, 1:10 pm, Gary Herron [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
On Aug 15, 1:42 pm, mfglinux [EMAIL PROTECTED] wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
On Aug 15, 4:19 pm, Peter Otten [EMAIL PROTECTED] wrote:
If you want to simplify things somewhat you can merge the two loops into
one:
numbers = [12.5, 25, 12.5]
accu = Material(numbers[0])
for x in numbers[1:]:
accu += Material(x)
period = Slab(accu)
Better to use
On Aug 15, 1:42 pm, mfglinux [EMAIL PROTECTED] wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
Why I
[EMAIL PROTECTED] wrote:
On Aug 15, 1:42 pm, mfglinux [EMAIL PROTECTED] wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a
Gary Herron wrote:
[EMAIL PROTECTED] wrote:
On Aug 15, 1:42 pm, mfglinux [EMAIL PROTECTED] wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
The solution with the dictionary worked perfectlly well, my script is
running and even produces data with sense!!!
Thank you very much indeed to all of you answering. Cheers!
--
http://mail.python.org/mailman/listinfo/python-list
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
Why I need this? Cause I have a python module that obliges me to build
On Wed, 15 Aug 2007 10:42:02 -0700, mfglinux wrote:
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
You want a dictionary.
M =
mfglinux wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
Why I need this? Cause I have a python
On 8/15/07, mfglinux [EMAIL PROTECTED] wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
Why I need this?
mfglinux wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
In Python you would build a list instead of
On 8/15/07, mfglinux [EMAIL PROTECTED] wrote:
#Let's say x=3, then Period definition is
Period=Slab(Material1(12.5)+Material2(25)+Material3(12.5)) #Slab is a
python class
I dont know how to automatize last piece of code for any x
Hello,
you could use exec to create on the fly the
On Wed, 15 Aug 2007 10:42:02 -0700, mfglinux wrote:
Hello to everybody
I would like to know how to declare in python a variable name that
it is in turn a variable
In bash shell I would wrote sthg like:
for x in `seq 1 3`
do
M$i=Material(x) #Material is a python class
done
Why I
13 matches
Mail list logo