Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
21 Online
Hi. I'm having trouble on PS3, Part B, where I'm supposed to use get_perms(hand, n) and have the computer choose a valid word. But I don' t know how to extract words out of get_perms(hand,n). Can anybody enlighten me? Thanks in advance!
Still Need Help?
Join the QuestionCove community and study together with friends!
did you look at the get_perms() function to see what it returns?
It returns toret. Not sure what that means. I'd like to use is_valid_word on each of the permutations returned.
I'm okay now. I figured it out. Thanks for pointing me in the right direction.
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
notmeta:
Nitrogen is an essential componant of all living things. However, atmospheric nitrogen is unavaibable for organisms to use.
Earfquake:
this is a zombie gloomy bear i painted for an art project ! we had to take a well known character and reimagine it and make it our own.
Jaynater:
ud835udde4ud835uddd6 ud835udde0ud835uddf6ud835uddfbud835uddf2ud835uddf0ud835uddffud835uddeeud835uddf3ud835ude01 ud835udde6ud835uddf2ud835uddffud835ude03ud83
SsTDOGRednek:
POEM!!!!! When I close my eyes. I think about all the lies, the lies that you told for all that time.
sobitter:
Grammar check? Once, there was a girl named Alaida. She was a small-town girl with big dreams of becoming a famous horse rider.
1 hour ago
4 Replies
1 Medal
3 hours ago
11 Replies
2 Medals
7 hours ago
8 Replies
0 Medals
11 hours ago
11 Replies
5 Medals
17 hours ago
4 Replies
1 Medal