Python Semester Review 1.1.3

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Not equal to in python

!=

less than or equal to in python

<=

greater than or equal to in python

>=

What is the modulus operator?

divides two numbers and returns the remainder of the division; used to determine if a number is odd or even; if you divide by 2 the answer will be 0 (even) and if you get 1 it is odd

Less than in python

<

Equal to in Python

==

greater than in python

>

What is a Code Segment in python?

A collection of program statements that is part of a program.

What is a Conditional Expression in python?

A comparison, usually in a while or if statement, that evaluates to a Boolean value of True or False

What is a decidable problem?

A decision problem for which an algorithm can be written to produce correct output for all inputs (e.g., "Is the number even?").

What is an undecidable problem?

A decision problem for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer.

What is an Iteration in python

A repeating portion of an algorithm. Iteration repeats a specified number of times or until a given condition is met. Also used to refer to a single execution of that repetitive procedure.

What is a Boolean in python?

An expression that evaluates to either true or false; used in the conditional of an if structure.

What is a while loop in python?

Loops while condition is true

What are Relational Operators in python?

Used to test the relationship between two variables, expressions, or values. A comparison using a relational operator evaluates to a Boolean value. For example, a == b evaluates to true if a and b are equal; otherwise, it evaluates to false. Operators include: ==, !=, >, <, >=, and >=.


Ensembles d'études connexes

VASCULAR: Natural History of ATH LL PAD Syndrome (50 years and older)

View Set

Civics test: Before Constitution Info: Constitutional Convention

View Set

HOA 320: Italian Renaissance Art Exam 2

View Set

Chapter 1 Introduction to Statistics Quiz 1

View Set