I am using a toolkit that has a SetFaveNumbers( ) method. the method
accepts any number
of comma-separated numbers.
the following are all valid examples:
FooToolkit.SetF aveNumbers(1,3, 5)
FooToolkit.SetF aveNumbers(2,4, 6,8,10)
FooToolkit.SetF aveNumbers(1)
I do not know how this method is implemented, but I would like to be
able
to call the method using a single variable:
MyFaveNumbers = []
MyFaveNumbers.a ppend(2)
MyFaveNumbers.a ppend(4)
FooToolkit.SetF aveNumbers(MyFa veNumbers)
how is this possible in python?
accepts any number
of comma-separated numbers.
the following are all valid examples:
FooToolkit.SetF aveNumbers(1,3, 5)
FooToolkit.SetF aveNumbers(2,4, 6,8,10)
FooToolkit.SetF aveNumbers(1)
I do not know how this method is implemented, but I would like to be
able
to call the method using a single variable:
MyFaveNumbers = []
MyFaveNumbers.a ppend(2)
MyFaveNumbers.a ppend(4)
FooToolkit.SetF aveNumbers(MyFa veNumbers)
how is this possible in python?
Comment