Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 12 Online
OpenStudy (anonymous):

I'm working on the hangman project - Project 1. I'm a bit stuck on the 6th step. I need to do the print_guessed function. I get that I should do a loop of for i in secret_word? Any help is appreciated. Thanks!

OpenStudy (anonymous):

not sure if this is what you need but: perhaps make a for loop that makesword into array of chars then make a for loop that compares each one to the word they are trying to guess and if its correct print out char else "-". for(int i=0;i<myWord.length;i++){ if(guessWord[i]==myWord[i]) print guessWord[i]; else print "-" }

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!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!