From the course: Programming Foundations: Beyond the Fundamentals

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Solution: Debugging

Solution: Debugging

(upbeat music) - Hope you had fun with that challenge. You might have had questions while doing it or you might have had a moment when you weren't sure about what to do next. If so, that's totally normal. Understanding and working with programming concepts takes practice. In fact, even experienced developers run into errors they can't easily fix. Trying your hand at this challenge is the first step in building those muscles. When I open the file, I notice right off the bat that I have a red squiggle on line two, and moving the pointer over that, the linter tells me I have invalid syntax, but if I run it, the terminal includes a caret that points out the location in the line where it found the problem, which is the equal sign. And that's enough to remind me that I need a double equal sign for comparison. So I'm going to add in another equal sign here. I'm going to save that, and now my syntax error is gone. That red…

Contents