+ Expand Code

import random

b1 = (random.randint(1,1000) % 2 == 0)
b2 = (random.randint(1,1000) % 2 == 0)
        
# Notice the variable names: _a, _b, _c, etc.
# NOT a, b, c, etc.
_a = random.randint(-100,100)
_b = random.randint(-100,100)
_c = random.randint(-100,100)
        .........
		
Your task, then, is to follow the directions in the comments in order to make changes to the code that will result in the desired output being printed to the screen.
  1. Write the print statements that print the expression itself and whether it is True or False.
  2. Write the simple if and if/else statements
  3. Write the nested if/else statements
Some of the instructions in the comments are frequently misinterpreted, so make certain that you are present in class to receive the detailed explanations that I intend to give in class!

Note that because b1 and b2 are being assigned True or False at random, while the int variables are also being assigned random values, the output will look different each time you run the program. To this end, I have provided multiple examples of how the output could look.

Note also that some parts of the sample output are blacked out like this: __________ This is because you are being asked to write the boolean expression twice -- once as part of the output string text and once to actually be evaluated as True or False. The blacked out portions are just to avoid giving away the answer in the sample output.

Program output examples:

+ Expand Output
b1 is False
b2 is True
_a is 90
...
		
+ Expand Output
b1 is False
b2 is False
_a is 93
...
		
+ Expand Output
b1 is False
b2 is True
_a is 18
...
		
+ Expand Output
b1 is True
b2 is False
_a is -51
...
		
+ Expand Output
b1 is True
b2 is False
_a is -22
...
		
+ Expand Output
b1 is False
b2 is True
_a is -48
...
		
In at least 150 words, please address the following questions in memo.txt:
  1. How did the process of creating these programs go for you?
  2. What were your main challenges and how did you overcome them?
  3. What did you learn that may be of use as you move along in this class?