74.8k views
2 votes
Question 4 Multiple Choice Worth 5 points)

(03.03 LC)
Python uses
to determine whether the condition of a while loop is true or false.
O algebra
O artificial intelligence
Boolean logic
O input

User Calebo
by
5.6k points

1 Answer

3 votes

The correct answer is Boolean logic.

Booleans are true or false statements.

An example of a while loop is:

while 1 < 5:

#do something.

The Boolean statement is 1 < 5 which evaluates to true because 1 is less than 5.

I hope this helps!

User Jaypeagi
by
5.1k points