return product
[snip]
But as I mentioned there is no value in using decimal here.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ith number of terms of %d",
print "or more was %s (%d)" % (length, intCommas(n_for_max_c), n_for_max_c)
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Dick Moores wrote:
At 11:10 PM 8/22/2006, Bob Gailer wrote:
Dick Moores wrote:
I have this long print statement in a script:
print "Initial integer of first sequence with number of terms of %d
or more was %s (%d)" % (length, intCommas(n_for_max_c), n
S P PA M M
P A M
S P A M M
S P A M M
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ideas!
>
> Dick Moores
>
>
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
print "Go NorthEast"
> k = k + 1
> else:
> print "Congrats! You found the hurkle in", %d1.0, "
> guesses!" (k)
> break
> else:
> print
pt to spot the problem.
Have you figured out why it is choking at the %?
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
x27;t use input(). use raw_input() and int(), float(), etc.
> 6. don't cross-post to both the tutor and help mailing lists
>
and if that's not enough, please also use a more meaningful subject
line, rather than "help".
> ______
nment - Think of ways to optimize automated solving of a puzzle
rather than just brute force trial-and-error.
I realize that this can go on and on. I hope this is in the ballpark of
sufficient interest and somewhat easy steps. Let me knw.
--
Bob Gailer
510-978-4454
_
Bob Gailer wrote:
I amend the previous e-mail:
) this is in response to [EMAIL PROTECTED] desire for some programming
assignments to work while commuting.
) "I exclude these from the following rules" refers just to rules 1 and 4.
) rule 3 - the path is vertical or horizontal, no
()
>
> it doesnt write anything
That could mean you get an empty file or you don't see the file. Which
is it?
If the file is empty that means puzzleanswers is empty.
If you don't see the file that means it is being written someplace other
than wher
equence of numbers generated will be
different each time.
HTH.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Chris Hengge wrote:
> Woohoo for my first post!
>
> Simple command to clear console? (C++ was something like system.clr())
> Some sort of cursor positioning? (C++ was something like gotoxy)
This is operating system dependent. Which OS you use?
--
Bob Gailer
gt;= %s and rt_weekst <= %s and
rt_type = ' % (a,b,"R")
c.execute(sql)
OR you could shorten it a bit:
sql = 'SELECT * FROM times where rt_weekst between %s and %s and rt_type =
"%s"' % (a,b,"R")
I like to assign sql first, then execute it, as I can inspect sql if there is a
problem.
FoxPro also recognizes date constants like {12/31/2006} (note braces not
parentheses).
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
k] = 1
got += 1
for i in range(len(picks)+1):
if picks[i]:
print i,
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
o do this in simple. Could
> members suggest some way to solve this please.
>
I assume by "precedes" you mean is one-less-than. To test this you
should convert the strings into integers. Since the numbers come in
pairs each pair must be split at the \t (using split), then conv
27;, '20', '25', '35', '45', '50', '55', '60', '61', '65',
'75', '80']
>>> t2=[int(i) for i in t]
>>> t2
[10, 15, 16, 20, 25, 3
m the file I want to cut up. The file I want to cut up
> has 3900 lines. This is as far as I have got.
Others have provided the "answer". Since you are new to the list I will
add the request that you provide a meaningful subject line so we can
track the various threads.
--
pective: tuples are immutable, lists are not. One may
change a list by various techniques; one may not change a tuple.
tuples may be used as dictionary keys; lists may not
tuples are found on the right of % (formatting); lists are not
--
Bob Gail
kumar s wrote:
> [snip]
> so I want to select 0,3,6,9 elements into listA
> and 2,5,8,11 and so on elements into listB
>
>
Here's a hint:
for j in range(0, len(biglist), 3): # this will set j = 0, 3, 6, etc.
--
Bob Gailer
510-978-4454
_
ack (most recent call last):
> File "", line 1, in -toplevel-
> sdso.pop('full_name')
> AttributeError: Data_Set instance has no attribute 'pop'
>
> Am I doing something wrong ?
Err, yes. You are assuming that assigning to self.keys and self.values
creates dictionary entries. All that actually does is assign the 2 lists
to 2 attributes.
Try instead self.update(dict_of_datum_objects).
--
Bob Gailer
just up the road in El Cerrito
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
essage: 'float' object is not callable
FWIW the simplest example of the callable issue is:
>>> 2(3)
Traceback (most recent call last):
File "", line 1, in ?
TypeError: 'int' object is not callable
>>> 2*3
6
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ap.py", line 38, in ?
> fd.write(str)
> IOError: (0, 'Error')
>
> Please help to rectify this error...
> --
> To HIM you shall return.
>
>
> ___
is
inadvisable to change the file position or to read it ( as you are doing).
As Kent points out there are better ways to do what you are doing. My
(minimalist?) version is:
fname = raw_input("Enter the file name to write data to:\t")
fd = open(fname,'a+')
names = set()
whil
Bob Gailer wrote:
> Asrarahmed Kadri wrote:
>
>> Here is the complete code:
>> fd is the file handle.
>>
>> import sys
>>
>> def check_dup(fd1):
>> print fd1
>> fd1.seek(0,0)
>> done = 0
>> list1 = []
&g
the argument of random.choice is supposed
to be a sequence (according to the docs str, unicode, list, tuple,
buffer, xrange), I'd expect an exception. I also predicted the the
result if no exception was raised, and that was correct.
I will withhold further observation until others (who wi
you have built a dict of 1000 items with keys between 1 and 1000, all
values 0. Then you have give choice 693 tries to pick a key value other
than 0. One 0 raises a key not found exception. No 0s raises no
exception and the expression returns 0.
--
Bob Gailer
510-978-4454
"To HIM you shall
return."
>
> Do you have any suggestions for a nice book or web resource..??
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
t an easier way to code something very long later.
Just wanted to know if i am on the right track.
if you have read this far, thanks !
sk
_______
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/
There are several ways around this. The easiest is to process the list
backwards: for unWantedItem in directoryList[,,-1]:
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
at this thought brings you some comfort or stimulation. I
used to believe something similar, and all it did was bring me fear
guilt and shame.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
test_read_linenum(self):
> r = csv.reader(['line,1', 'line,2', 'line,3'])
> self.assertEqual(r.line_num, 0)
>
> I suspect this is something so obvious that I just can't see the
> wood for the trees and I will kick myself.
Duncan Gibson wrote:
> [snip]
> but I would like to record the line number in the file.
>
How about using enumerate():
>
> for line_num, data in enumerate(reader):
> print reader.line_num, data
>
>
--
Bob Gailer wrote:
> Duncan Gibson wrote:
>
>> [snip]
>>
>
>
>> but I would like to record the line number in the file.
>>
>>
> How about using enumerate():
>
>> for line_num, data in enumerate(reader)
u. If you don't get any
useful replies, please explain the desired behavior.
>
> thanks a lot for your time and patience
>
> keep rockin in the web/python world
>
>
> Anil
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Also if you told a "binary" person that his base was 2 he could not
understand that. To him it is base 10
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
some code and tell us
what you were expecting.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
n time may be less than that requested because any
caught signal will terminate the sleep() following execution of that
signal's catching routine. Also, the suspension time may be longer than
requested by an arbitrary amount because of the scheduling of other
activity in the system.&q
= area * price
> 19 print "The cost of the pizza is %0.2f"
> %(cost)
> 20
> 21 unitCost()
> ---
If I were working this assignment I'd structure it thus:
get the diameter
get the cost per square inch
call a function to compute the
The OP (whose email address I don't have) requested a 90 degree ccw
roatation.
transposed = zip(*twisted) # gives the 90 degree cw roatation
transposed.reverse() # does the 180 degree rotation leaving us at 90
degreee ccw
--
Bob Gailer
510-978
) is the top left corner, and (x1, y1) is the bottom right
corner."
I highly advise you get a reference. The Tkinter module document under
the Python Manuals - Global Module Index lists several. BTW how can you
write code without a reference? Are you copying examples?
--
Bob Gailer
510
Alan Gauld wrote:
> I think he has a reference but just couldn't see how you could draw
> a 4 cornered shape with only two corners specified.
>
And I assumed no reference, since references usually spell out the
meaning of parameters.
--
Bob Gaile
dth is"
> print width
> print " "
> print "So the area is"
> print area
> print " "
>
> end = (raw_input("Type something, and press Enter, and the program
> should shut down."))
> #workaround
>
>
>
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
to run this entire process within the physical memory!
Depends on what for.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
he documentation says, the modulo operator does not return
a remainder! Notice:
>>> [x % 3 for x in range(-5,5)]
[1, 2, 0, 1, 2, 0, 1, 2, 0, 1]
For negative values of the left argument the result is NOT the
remainder. The literature seems very confused about this, using
"rem
See http://en.wikipedia.org/wiki/Modular_arithmetic for a comprehensive
discussion. Especially the paragraph title Remainders.
Often people ask "what's the practical use of modular arithmetic?"
Consider how we tell time...
--
Bob Gail
lso if not too much trouble then how can i do:
>
> IF the user picks the bat up then when he comes across the vampire
> then he kills it, but if he hasnt pickd up the bat then he dies?
>
> Thanks in advance
>
> P.S. Could u plz email sum code
> ----
>>
>>
>>
>> --
>> Eli Zabielski
>>
>
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
r:
>
> for i in range(5):
> lista_+'%i' % (i) = []
>
> :-[
>
> Is this possible?
>
> Thanks in advance,
> And Merry Christmas,
> Carlos
>
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.pyt
following the logic in how
> the key, the actual word, is having a value assigned.
>
counter[w] = 1 # if w is not a key in the dictionary, this assignment adds it,
with a value of 1
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Steve Oldner wrote:
> Thank you! I makes sense now and shows me I need to research more on
> file methods.
Good.
One other advisory: don't use file as a variable name. file is a
built-in function; reassigning it makes the function unavailable.
--
Bob Gailer
5
Guesses you've taken: 0
> Guess letter: (letter would go here)
>
> instead of
>
> Guesses you've taken: 0
> Guess letter:
> (leter you've taken)
>
> is there a way to continue the input line, like in java you would just do
> System.out.print?
>
t
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
gt;
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Amadeo Bellotti wrote:
> does anyone know how to do this? I need it because i want to make a
> binary coverter
>>> list('abc')
['a', 'b', 'c']
--
Bob Gailer
510-978-4454
___
Tutor maillist - T
gt;
> Hopefully I'm making myself clear and the info is enough.
>
Unfortunately, no. I for one can't interpret "I need the info every time
that it gets updated by the loop".
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
at causes the problem? Or have any tips how to find
> the error easily?
>
> Thanks in advance!
> Toon Pieton
>
>
> _______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
#x27;)
> Traceback (most recent call last):
> File "", line 1, in ?
> int('1000')
> TypeError: 'int' object is not callable
>
>
> HTH,
> -Luke
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
e.read(sz)
>infile.close()
>
> #struct.error: unpack str size does no match format
>
>
>
> _______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
nusual.
>
> This should be corrected, don't you think?
>
Who is the publisher? They'd be the ones to correct this.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
libraries, universities, wholesalers and distributors."
IMHO the revision should be considered a new edition therefore have a
new ISBN.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
left side the "usual" Contents Index Search Favorites Tabs.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
owing >>> print data is the packet capture, and the 2
lines following "yields:" is the subset of the packet capture that comes
into self.data. Is this true? If so are you asking why
self.tn.read_until(self.host.upper() + "#", 7) does not get all the packet?
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
s where some inspection / protection /
side-effect action is desired.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
te server? Size? Transaction rate?
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
#x27;,'0010','0011','0100','0101',
'0110','0111','1000','1001','1010','1011','1100',
'1101','1110','')):
return " ".join( [bin[x]+bin[y] for x,y in [divmod(ord(c),16) for c in
s]])
Note that by making bin a parameter it gets created one time when the
def is executed. And indexing a list is faster than keying a dict.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
atabase. If you do not need to run queries against the
document contents, consider that approach. If you need to query contents
consider building indexes of keywords rather than asking a database to
find rows where document like "?dollar?" (or is is % ?)
> - Is this a good id
range(count-1, -1, -1])
or if you are using the latest python use a generator _expression_:
"".join(str((x>>y)&1) for y in range(count-1, -1, -1)
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Bob Gailer wrote:
I just noticed missing ) in the last 2 statements. Fixed below.
Johan Geldenhuys wrote:
Hi all,
I found this function that converts a integer into a 8 bit
binary string.
Would somebody care to explain what is happening in this
process
one with return, and
put a call to the function in place of the code.
def tests():
if test_1:
etc etc
if test_4: return
Some may take issue with that. You can, as Alan says, restructure the
code, or use intermediate variables.
--
Bob Gailer
510-978-4454
___
; membership (i.e. x in list) is not working because they are not a
> exact duplicates.
>
To create only unique dominoes:
for a_end in range(self.set_type+1):
for b_end in range(a_end, self.set_type+1):
self
)) for di, dv in dict1.iteritems())
>
>> 3. Last but not least. I understand the replacement in #2 above is the
>> proper Pythonic idiom, but what if a list isn't being created. Is it
>> considered properly idiomatic to replace
>> for li in list1:
>>
t;
> files = list()
>
Or just files = []
> for clist in get_clists():
> files += get_clist(clist)
>
> My first attempt was to try
> [get_clist(c) for c in get_clists()]
>
> but this returns a list of lists rather than the flat list from the
> original.
>
&
John Fouhy wrote:
[snip]
>
> Or [x for k in get_clists() for x in get_clist(k)] using your original
> structure.
>
Well I learned something!
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mail
t's up with this?
>
Kent gave the answer for this case. In general use the __file__
attribute of the module object to see what was actually imported. In
your case:
print user.__file__
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
rted GWT widgets is
pretty impressive. No more HTML!
Take a look at the pyjamas helloworld example.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
but I am confused by some of
> the code in it. I would appreciate it if someone could look at the file
> for me and tell me if it is c so I can pass it back to the c guys and
> ask them.
>
OK. Show us the file (if not too big as body te
nt, and novel. It's a novel language. VERY
>> good for controllers giving you maximum program in a small device such
>> as your usuall PIC chip. Really SHINES in this venue.
>>
>> Here's a link to wikipedia:
>> http://en.wikipedia.org/wiki/Forth_(programming_language)
>>
>> But this is python list, so enough of comparitive languages.
>>
>
>
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Lance Haig wrote:
> Bob Gailer wrote:
>> Lance Haig wrote:
>>> Hi,
>>>
>>> I am helping on an OS project called bongo-project and I am trying
>>> to debug a script that is used for migration. When I run the file I
>>> get an error. I have
les make perfect sense. This one doesn't, and
> appears to be an inconsistency:
>
> >>> word2 = 'hello'
> >>> item = 'e'
> >>> item in word2
> True
> >>> item == item in word2
> True
>
Take a look in 5.9 C
I examine each roman numeral character in turn starting at the left (or
right?):
for rc in roman_input:
I lookup the character's decimal value
(note there are several ways to do this in Python - the "best" is a
dictionary), an if elif else statement,
I add it to the digital_result
etc.
Hope that gets you started. Write all the manual steps. Make sure each
is one simple operation. Walk thru the steps to verify that you have
them correct.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Alan Gilfoy wrote:
> Quoting Bob Gailer <[EMAIL PROTECTED]>:
>
>
>> Make sure each step
>> is one simple operation. Walk thru the steps to verify that you have
>> them correct.
>>
>
> Bob, your email did inspire me on how I would express
add the decimal value and step to the next letter.
Else
take the leftmost letter of that pair
If it is in the dictionary
add the decimal value and step to the next letter.
Else
complain about bad letter
--
Bob Gailer
510-978-4454
___
sted
# assume your data is in variable log:
userData = {} # setup a dictionary to collect latest timestamp for each user
for user, timestamp in log:
if user not in userData or timestamp > userData[user]
# note that we need a way to compare timestamps
# the current representation does not
Shitiz Bansal wrote:
> > I need to implement a system which stores Strings(average length 50>
> chars).
[snip]
How much greater than 50? 500, 5000, 50,000, ...?
Are these arbitrary text, or do the words come from some predetermined
domain?
Would you provide some examples?
--
Bo
Bob Gailer wrote:
Shitiz Bansal wrote:
I need to implement a system which stores Strings(average length 50>
chars).
[snip]
I may have read 50> as >50. Please confirm that average length IS
50?
Are these arbitrary text, or do the w
o index the string by word, as opposed to the standard method
> of strings being indexed by character.
>
"I would like to convert an English string (sentence) into Pig Latin.".split()
yields:
["I", "would", "like", &qu
is is proving to be
> a little slow with the amount of data we now have, so I am looking
> into alternatives.
>
> Does anyone have any experience of this sort of thing? Or know
> someone who does, that I could talk to?
>
>
--
Bob Gailer
510-978-4454
<http://en.wikipedia.org/wiki/Vowel> sounds (including silent
consonants <http://en.wikipedia.org/wiki/Silent_letter>), simply
add the syllable "ay" to the end of the word.
* eagle → /eagle-ay/
* America → /America-ay/
* honor → /honor
exec is the statement for doing this, but the need to do this can always
be met better by using a dictionary instead of global variables.
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
han an exec-solution, since I
> don't need security checks for the string that is saved, before
> executing it.
I'd love to help, but am confused. If your code (at least the relevant
part) is of reasonable size, would you post it?
Or at least some pseu
ly it to your problem thus:
import pipeline
result = pipeline.pipe('deblock 2', '00010203040506...')
Does this interest you? (The capabilities of Pipelines is MUCH bigger
than this example!)
Would you like to be an alpha tester of this tool?
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Meftah Tayeb wrote:
> 1. do you know a tutorial for this ?
This tutor list is also a good place to ask questions.
> 2. do you know a Free IDE for Python (for windows) ?
Many of us really like http://sourceforge.net/projects/pywin32/
--
Bob Gailer
919-636-4239 Chapel Hi
raceback. Otherwise we have no way
to easily help you.
But I will take a guess that you saved the contents of the interactive
session and tried to run that. That will not work, as the interactive
session is full of >>> and results of print statements.
So I suggest you edit the module t
input = feet then do this equation. I am coding in pure
> Python on my mac, so please nothing in C as have been some answers I have
> received.
--
Bob Gailer
919-636-4239 Chapel Hill, NC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
,. item2, ... item20, data21, data22, ... data27
--
Bob Gailer
919-636-4239 Chapel Hill, NC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
(to, original)]
print variable / factor
Adding key testing:
if (original, to) in factors:
factor = factors[(original, to)]
print variable * factor
elif (to, original):
factor = factors[(to, original)]
print variable / factor
else:
print "no conversion available for %s t
gt; ###
>
> I would like to alter this batch control so that I don't have to create
> a new method everytime I need a new tab.
>
> For example, I would like to change t1, t2 ... t[n] depending on the tab
> I am at.
>
> You can see it in action at http://uk.expert.travel/;vi
roblems yourself and express
questions CLEARLY!
--
Bob Gailer
919-636-4239 Chapel Hill, NC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
701 - 800 of 2074 matches
Mail list logo