On Sat, 12 Mar 2005 17:06:17 -0800,
'@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote:
I'd also suggest
validInput = "ABCDEFGHIJKL" # and there are more clever ways to do this,
# but this will do
myInput = raw_input(" ".join(validInput) + "?")
if len(
'@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote:
1) the tutor list is really slow. but thanks.
2) Thanks Brain, i was missing the string bit. the code i posted (opps)
was not exactly where i was having problems, it just looked like it.
also thanks for the 'in' test, that will com
1) the tutor list is really slow. but thanks.
2) Thanks Brain, i was missing the string bit. the code i posted (opps)
was not exactly where i was having problems, it just looked like it.
also thanks for the 'in' test, that will come in handy.
i am using chain because i need to do something differ
'@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])]) said
unto the world upon 2005-03-12 19:20:
the code below will not execute the except section when i enter a
number.
what am i missing ?
#
.while 1:
. print 'Pump Protection ? '
. #line 133
.
'@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote:
the code below will not execute the except section when i enter a
number.
what am i missing ?
Something that will actually raise ValueError.
It looks like you could use the help of the Python Tutor mailing list.
http://www.python
the code below will not execute the except section when i enter a
number.
what am i missing ?
#
.while 1:
. print 'Pump Protection ? '
. #line 133
.try:
.myInput = raw_input('A B C D E F G H I J K L ? ')
.myInput = string.upper(myInpu