N
ntg85
Can you use variables in string.count or string.find? I tried, and
IDLE gives me errors.
Here's the code:
while list:
print
letter = raw_input("What letter? ")
string.lower(letter)
guess = string.count(letter, list)
if guess == -1:
print "Try again!"
else:
list.remove(letter)
the error is:
TypeError: expected a character buffer object
Thanks.
IDLE gives me errors.
Here's the code:
while list:
letter = raw_input("What letter? ")
string.lower(letter)
guess = string.count(letter, list)
if guess == -1:
print "Try again!"
else:
list.remove(letter)
the error is:
TypeError: expected a character buffer object
Thanks.