Chapter 1 : ZyBooks Python Vocab

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/43

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.

44 Terms

1
New cards

program

Consists of instructions executing one at a time.

2
New cards

Input

A program receives data from a file, keyboard, touchscreen, network, etc.

3
New cards

Process

A program performs computations on that data, such as adding two values like x + y.

4
New cards

Output

A program puts that data somewhere, such as a file, screen, or network.

5
New cards

variables

Used by programs to refer to data, like x.

6
New cards

computational thinking

Creating a sequence of instructions to solve a problem.

7
New cards

algorithm

A sequence of instructions that solves a problem.

8
New cards

Python interpreter

A computer program that executes code written in the Python programming language.

9
New cards

Interactive interpreter

A program that allows the user to execute one line of code at a time.

10
New cards

Code

A common word for the textual representation of a program.

11
New cards

line

A row of text.

12
New cards

prompt

The interactive interpreter displays one of these (">>>") to indicate the interpreter is ready to accept code.

13
New cards

statement

A program instruction.

14
New cards

Expressions

Code that return a value when evaluated.

15
New cards

assignment

A new variable is created by performing an assignment using the = symbol.

16
New cards

comments

Denoted by “#”; are optional but can be used to explain portions of code to a human reader.

17
New cards

print()

The primary way to print output.

18
New cards

string literal

Text enclosed in quotes.

19
New cards

newline

A line break; is output after every print() statement.

20
New cards

newline character

Output can be moved to the next line by printing "\n".

21
New cards

whitespace

Any space, tab, or newline.

22
New cards

input()

Reading input is achieved using this function.

23
New cards

string

The input obtained by input() is any text that a user typed, including numbers, letters, or special characters such as # or @.

24
New cards

type

Strings and integers are each an example of this; determines how a value can behave.

25
New cards

int()

If a string contains only numbers, like '123', then this function can be used to convert that string to the integer 123.

26
New cards

incrementing

Increasing a variable's value by 1, as in x = x + 1.

27
New cards

identifier / name / underscores

A sequence of letters (a-z, A-Z), underscores (_), and digits (0-9), and must start with a letter or an underscore.

28
New cards

case sensitive

Python is this, meaning uppercase and lowercase letters differ. Ex: "Cat" and "cat" are different.

29
New cards

Reserved words / keywords

Words that are part of the language and cannot be used as a programmer-defined name.

30
New cards

PEP 8

Python Enhancement Proposal; outlines the basics of how to write Python code neatly and consistently.

31
New cards

object

Represents a value and is automatically created by the interpreter when executing a line of code. For example, executing x = 4 creates a new object to represent the value 4.

32
New cards

garbage collection

Deleting unused objects is an automatic process called garbage collection that frees memory space.

33
New cards

Name binding

The process of associating names with interpreter objects. An object can have more than one name bound to it, and every name is always bound to exactly one object. Name binding occurs whenever an assignment statement is executed.

34
New cards

Value

A value such as "20", "abcdef", or "55".

35
New cards

Identity

A unique identifier that describes the object.

36
New cards

type()

Built-in function that returns the type of an object.

37
New cards

Mutability

Indicates whether the object's value is allowed to be changed.

38
New cards

immutable

Integers and strings are this; meaning integer and string values cannot be changed.

39
New cards

id()

Built-in function that gives the value of an object's identity.

40
New cards

syntax error

One kind of mistake that violates a programming language's rules on how symbols can be combined to create a program.

41
New cards

runtime error

When a program's syntax is correct but the program attempts an impossible operation, such as dividing by zero or multiplying strings together (like 'Hello' * 'ABC').

42
New cards

crash

Abrupt and unintended termination of a program.

43
New cards

logic error

When the program is logically flawed.

44
New cards

bug

A logic error is often called this.