Think you've got it?
If Statements Review Assignment
1.Evaluate the boolean expressions shown in Figure A.
2.Provide values for a, b, and c that make the following statement evaluate as True:
a + b == c and (c is a or c is b) and a != b
3.What is wrong with the code in Figure A?
4.What's the output of the code in Figure A?
5.Write a function that returns "a is greater than b", "a is less than b", or "a is equal to b" depending on the values of two int input params a and b.
6.Write a function that converts an int num between 0-9 (inclusive) to its string equivalent (i.e., 1 -> "one").
7.Write an if statement that prints a and b are equal if two variables a and b have equal values, or a and b are not equal otherwise.
8.What do the boolean operators and, or, and not do in Python?
9.What is an if statement?
10.In Python, if/else statements are used to control the flow between two different options. How can we control the flow between more than two different options?
11.Fix the syntax error in the starting code.
12.Adjust the value of the variable a in the following code so that a is below zero! is printed.