Syntax Error: A student creates a Python function to calculate the area of a circle. When she runs it, the IDE highlights the line containing radius = input("Enter radius") with an error message: "SyntaxError: invalid syntax"., A game developer forgets to close a string with quotation marks in the dialogue script. The IDE flags the line and stops the program from compiling., A programmer writes code with an incorrect indent in a for-loop. The IDE highlights the issue with: "IndentationError: expected an indented block"., A web developer forgets to include a colon at the end of a def statement. The IDE shows: "SyntaxError: expected ':'"., Logical Error: A programmer writes a loop to add numbers from 1 to 5. However, the program prints 15 even though it was expected to print 10. There are no error messages., A developer writes code to multiply two numbers but accidentally uses the + operator instead of *. The program runs but produces incorrect results., A calculator app works for most functions, but when subtracting a larger number from a smaller one, it gives a positive result instead of a negative one., Runtime Error: When testing a finance app, a user enters a loan period of 0 years. The app crashes and shows the message: "ZeroDivisionError: division by zero"., A student writes a program to open a file and read its content. When the program is run without the file being present, it crashes with: "FileNotFoundError: [Errno 2] No such file or directory"., A weather app crashes when the temperature data from the web is not a number, and the code tries to convert it to an integer.,

Identifying types of programming errors

순위표

비주얼 스타일

옵션

템플릿 전환하기

자동 저장된 게임을 복구할까요?