In this lesson, you’ll get started debugging a faulty function. To follow along, go ahead and type the following code into your editor:
def add_underscores(word):
new_word = "_"
for char in word:
new_word = char + "_"
return new_word
phrase = "hello"
print(add_underscores(phrase))
With that, you’re ready to go through the four steps of debugging!
Victor Martins on Aug. 3, 2024
you should create a tutorial using VSCODE or other applicable python idle