> Em Quarta 08 Junho 2005 09:38, Guyon Morée escreveu:
> > Don't know if this is what you mean, but:
> >
> > Binary to decimal:
> > >>> bin_num = '11011'
> > >>> int(bin_num, 2)
> >
> > 267
>
> Dont know this way of using it. Thanks for the teachings :)
>
> See ya !
>>> def binary(i):
..
If you have any doubts,
try to remeber this when creating tuples,
if a tuple is to have 0 elements,
then it must be given as a=()
in other words, the ( and the ) are essential
if it has one element,
then a comma after that element is essential
a=1,
or alternatively
a=(1,)
in other words, an end
I'm sorry if this mail (also) sidetracks the primary theme of this
thread. But, it was a moment of "shock and awe" seeing the use of list
for checking among multiple options ... which is usually done using a
name=opt1 or name=op2 etc.,
I started as a C programmer and hence, that style of thinkin