I am having problems with PS6, problem 3. When the computer tries to find a word with a given hand I get an error message associated with the time taken for the computer to input a word. When the player inputs a word it is fine - I get the following output message:
'It took "input_time" seconds to provide an answer'. But when the computer does it I get the following message:
'It took
Could you pastebin or dpaste your code? I'll take a look.
http://dpaste.com/hold/787297/ The code is very long and I'm not sure if it will make much sense. The important parts are the following functions: play_hand(), and input_time(). Also, this is the error message that I get: TypeError: unsupported operand type(s) for +=: 'float' and 'function' Any advice would be appreciated. Thanks
Line 249: >>> time = input_time() <----- missing () You have some other issues after that, just holler if you need a hand with em, otherwise I'll leave you to investigate :)
I can't believe I missed that. Thanks so much. You are right, I do have other problems which I'm working on now. Thanks again!
Anytime ... happy debugging :)
Join our real-time social learning platform and learn together with your friends!