Input, Processing, and Output in Python

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to input, processing, and output in Python programming as outlined in the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

The program development cycle consists of the following steps: Design the program, write the code, correct errors, test the program, and correct errors.

syntax; logic

2
New cards

Pseudocode is an informal language that has no __ rule and is used to create model programs.

syntax

3
New cards

A __ is a diagram that graphically depicts the steps in a program.

flowchart

4
New cards

The three-step process typically performed by a computer includes receiving __, performing some process on the input, and producing __.

input; output

5
New cards

In Python, the __ function is used to display output on the screen.

print

6
New cards

A __ is a name that represents a value stored in the computer memory and is used to access and manipulate data.

variable

7
New cards

The general format for creating a variable is __ = expression.

variable

8
New cards

When reading input from the keyboard, the built-in input function returns the data as a __.

string

9
New cards

The __ operator is used to perform floating-point division in Python.

/

10
New cards

The __ operator performs integer division, truncating positive results and rounding negative results away from zero.

//

11
New cards

Operator precedence in Python lists operations in the following order: operations in __, exponentiation, multiplication and division, and then addition and subtraction.

parentheses

12
New cards

Two or more string literals written adjacent to each other are __ concatenated into a single string.

implicitly

13
New cards

A named constant is a name that represents a value that __ during the program's execution.

does not change

14
New cards

The purpose of using named constants instead of magic numbers is to make code __ and easier to maintain.

self-explanatory

15
New cards

To append one string to the end of another string in Python, you use the __ operator.

+