Chapter3 Pythonprogrammingwithjupyternotebook
Chapter3 Pythonprogrammingwithjupyternotebook
Jupyter Notebook
Step 1
Step 2
EXAMPLE
Write and Run a program of additional two numbers
TYPES OF PROGRAMMING ERRORS
SYNTAX ERROR
LOGIC ERROR
RUNTIME ERROR
SYNTAX ERROR
Common mistake -
grammatical mistake due to
misplacement of punctuation,
spelling error etc.
Program will not compile and
run untill been fix by
programmer
LOGIC ERROR
Mistake in a source code of program that cause incorrect
input.
Untraceable by the compiler and no error message
Good programming style with proper documentation make the program easy to read,
prevent error and ease to maintain in the future by other programmer.
The appropriate usage of comment that initiated by symbol # help to separate the portion
of the programming statement according to each task.
Proper spacing also make program look more neat and easy to read.
For example sum=num1+num2 can be more clear if the code is written as sum = num1 +
num2