Problem set-6, How do you do question 3, I've been sitting on it for days now. SOMEONE HELP!!!!!!!
What don't you understand about PS6 problem 3? you have to write two functions: one makes a dictionary with words as keys and wordscore as values {word:wordscore} the other uses the letters (in a hand) to find the word with the highest score - try to mimic the process you might go thru to figure that out (if you had all the time in the world) for either, write down in english (or your native tongue) what you think must be done to solve the problem. do this without even thinking about a computer. then look at what you have written and try to turn it into code.
BOOOYAH!!!!!!!!!! Great advice it worked. I dunno why I did'nt see it earlier. I have been cruising through all other assignments up until this one.......all I had to do was read your advice, think about it and go to sleep, Next thing I know I woke up with an answer(No I did not dream it but got it while brushing my teeth). I'm too embarassed to say the silly(oh it is really silly) mistake I made with my logic I used earlier.
yeay... writing it down that way is sometimes called writing pseudocode, it's a great way to start, lets your mind work on the problem you are trying to solve without complicating it with programming language syntax/grammar.
Join our real-time social learning platform and learn together with your friends!