That was an interesting course. I had a baffling problem, though. I thought that I had entered the same code line for line as you, but, my output before the fix was “h” and yours was “o_”. Even after debugging the code my output was “_h”. I finally find my error. I entered the “return new_word” statement under the “new_word = new_word + char + “” ” column instead of the “for char in word” column. So I not only learned debugging today but also the importance of indentation in Python.
ajackson54 on July 3, 2024
That was an interesting course. I had a baffling problem, though. I thought that I had entered the same code line for line as you, but, my output before the fix was “h” and yours was “o_”. Even after debugging the code my output was “_h”. I finally find my error. I entered the “return new_word” statement under the “new_word = new_word + char + “” ” column instead of the “for char in word” column. So I not only learned debugging today but also the importance of indentation in Python.