CSCI 1105 Lecture 3: Lecture 2 - Numbers & Strings
CSCI 1105 verified notes
3/25View all
Document Summary
Compile-time errors (syntax errors: spelling, capitalisation, punctuation, ordering of statements, matching of parenthesis, quotes. No executable program is created by the compiler (in python, the program does not run, which results in an error. ) Correct first error listed, then compile again. Occurs when a program is syntactically correct, but it does not do what the programmer intended. Often called logic errors, caused by logical flaws in the program. Do not always produce an error message. The output may not be as expected, but the system will not catch this error. For run time errors and logic errors, you must find the mistake on your own. Occur when an error is so severe that a message from the python virtual machine is generated. Numbers and character strings are important data types in any python program: fundamental building blocks used to build more complex data structures. A variable is a named storage location in a computer program.