Unit 3: Variables, Statements, and Output Operation

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

Programming Language

A formal language used to communicate instructions to a computer

2
New cards

High-level Language

A language that is easier for humans to read and write

3
New cards

Low-level Language

A programming language that provides little or no abstraction from a computer's hardware

4
New cards

Compiler

A program that translates the entire source code into machine code before execution

5
New cards

Interpreter

A program that translates and executes source code line by line

6
New cards

Compilation vs. Interpretation

Compilation is faster to run but slower to develop; Interpretation is slower to run but faster to develop

7
New cards

Python

A high-level

8
New cards

Interactive Mode

A Python mode where statements are executed immediately after being typed

9
New cards

Script Mode

A Python mode where a file with a .py extension is executed as a whole

10
New cards

Literal

A fixed value that is written directly in the source code

11
New cards

Numeric Literal

A literal that represents a number (e.g.

12
New cards

String Literal

A literal that represents a sequence of characters enclosed in quotes (e.g.

13
New cards

Boolean Literal

A literal that can only be one of two values: True or False

14
New cards

Variable

A named container or storage location in memory for a data value

15
New cards

Variable Naming Rules

Rules for naming variables

16
New cards

Keywords (Reserved Words)

Special words in a language that have a predefined meaning and cannot be used as variable names

17
New cards

Operator

A symbol that performs an operation on one or more values (operands)

18
New cards

Operator Precedence

A set of rules that determines the order in which operations are performed in an expression

19
New cards

Expression

A combination of variables

20
New cards

Statement

A complete instruction that performs an action and can be executed by the interpreter

21
New cards

Statement vs. Expression

A statement "does something" (an action)

22
New cards

Assignment Statement

A statement that assigns a value to a variable using the equals sign (=)

23
New cards

Shortcut Operators

Operators that provide a shorter syntax for performing an operation and an assignment (e.g.

Explore top flashcards