Section 25.9 Chapter Summary
This chapter included the following concepts from computing.
- Input - The
input
function returns a value that the user enters. - Complex Conditional - A complex conditional is an expression one that uses operators like and and or to combine multiple logical expressions.
Subsection 25.9.1 Summary of Python Keywords and Functions
- And - The keyword
and
is used to join two logical expressions. Both of the logical expressions must be true for the joined expression to be true. - Not - The keyword
not
is used to negate a logical expression. If the original expression is true the negated expression is false and if the original expression is false the negated expression is true. - Or - The keyword
or
is used to join two logical expressions. If either or both of the logical expressions are true, the joined expression to be true. - Str - The function
str
turns a number into a string so that it can be appended to a string.
You have attempted of activities on this page.