OOPwith Python Lecture 1
OOPwith Python Lecture 1
WITH PYTHON
Second Class
1st Semester
Problem Solving
What is a program?
Debugging
Python
Why Python
Output: Display data on the screen or send data to a file or other device
Runtime Errors
• The second type of error is a runtime error, so called because
the error does not appear until you run the program. These
errors are also called exceptions.
DEBUGGING
Semantic Error
• If there is a semantic error in your program, it will
run successfully, in the sense that the computer
will not generate any error messages, but it will
not do the right thing
• The meaning of the program (its semantics) is
wrong. Identifying semantic errors can be tricky
because it requires you to work backward by
looking at the output of the program and trying
to figure out what it is doing.
EXPERIMENTAL DEBUGGING
Assembly Language
Low Level Language
Machine Language
Hardware
PYTHON