Python Basics: Finding and Fixing Code Bugs (Quiz)

Avatar image for ajackson54

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.

Avatar image for emmanuel

emmanuel on Nov. 24, 2024

I found the course very interesting but i could not have two windows in my idle interface ? How is it possible to configure a run window and an edit window in idle ?

Avatar image for Bartosz Zaczyński

Bartosz Zaczyński RP Team on Nov. 25, 2024

@emmanuel The ability to display windows side by side depends on your operating system. If you’re looking to open a new window in IDLE, you can do so by selecting File > New File from the menu or using the shortcut Ctrl+N (Cmd+N on macOS).

Become a Member to join the conversation.