CISC106 Lecture Notes - Lecture 2: Decimal Mark, High-Level Programming Language, Machine Code
Document Summary
Interpreters and compilers - changes the code to 0s and 1s for the computer to understand. Interpreter: translates and executes a few lines of high level language code at a time. Translates the entire program before the program starts executing. Machine language code - object code of executable. Values - fundamental things a program manipulates. Int - integers, whole numbers, positive or negative. With a decimal point, positive or negative. Str - enclosed in single, double quote characters (text) Can put a double quote inside of single quotes". Type() - can be used to determine type or class of object. Can convert values from one type to another - called casting. Convert (or cast) a float to an int. Variable- name that refer to a value. Must start with a letter or underscore. The computer doesn"t understand the variables (up to you what you name it. There are some words that can be used because they have meaning in python.