GoConqr has a new look! Let us know what you think.

Notes

Untitled

Alicia Bowers English 1 page

Content of the notes (1)

Page 1

Boolean Control Flow Review:

Boolean expressions are statements that can be either True or False

A boolean variable is a variable that is set to either True or False.

We can create boolean expressions using relational operators:

==: Equals

!=: Not equals

>: Greater than

>=: Greater than or equal to

<: Less than

<=: Less than or equal to

if statements can be used to create control flow in your code.

else statements can be used to execute code when the conditions of an if statement are not met.

elif statements can be used to build additional checks into your if statements

In Python, there are many different ways of classifying errors, but here are some common ones:

SyntaxError: Error caused by not following the proper structure (syntax) of the language.

NameError: Errors reported when the interpreter detects a variable that is unknown.

TypeError: Errors thrown when an operation is applied to an object of an inappropriate type.

Information

Description
Note on Untitled, created by Alicia Bowers on 10/07/2023.
Created by
Alicia Bowers
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?