Python Variables

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

expression

A combination of variables, operators, and values that represents a single result value.

floating-point

A format for representing numbers with fractional parts.

state diagram

A graphical representation of a set of variables and the values to which they refer.

variable

A name that refers to a value.

value

A number or string (or other thing to be named later) that can be stored in a variable or computed in an expression.

keyword

A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as variable names.

statement

A section of code that represents a command or action. So far, the statements you have seen are assignments and print statements.

type

A set of values. The type of a value determines how it can be used in expressions. So far, the types you have seen are integers (type int), floating-point numbers (type float), and strings (type string).

operator

A special symbol that represents a simple computation like addition, multiplication, or string concatenation.

assignment

A statement that assigns a value to a variable.

integer division

An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.

comment

Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.

operand

One of the values on which an operator operates.

composition

The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.

rules of precedence

The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.

concatenate

To join two operands end-to-end.

evaluate

To simplify an expression by performing the operations in order to yield a single value.


Set pelajaran terkait

Int. Finance - Test #1 - Chapter 1

View Set

Peds - Ch 17: Alteration in Sensory Perception - Disorder of the Eyes or Ears

View Set

Read and Interact - CH 6 Geography

View Set

NURS 623 FINAL EXAM - MUSCULOSKELETAL SECTION

View Set