CISC106 Lecture Notes - Lecture 2: Decimal Mark, High-Level Programming Language, Machine Code

31 views2 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents