Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 24 Jan, 12:05:54

Logic error: A logic error occurs when code does not accomplish what the programmer intended for it to do. For example, if a programmer creates a program with the intent of printing the phrase “hello world” and instead it prints “goodbye world” then the code is considered to have a logic error.

Syntax error: A syntax error occurs when the code being written does not meet the syntax requirements of the language, or programming environment, in which it is written. For example, syntax errors may include incorrect indentations, misspelled keywords, and missing punctuation, among others.