Consider the following incomplete python code. It has three (numbered) blanks that we need to fill up. Choose the correct conditional expression from the given choices to fill up these blanks so that...


Consider the following incomplete python code. It has three (numbered) blanks that we need to fill up. Choose the correct conditional expression from the given choices to fill up these blanks so that it prints the following output:!!$$..




# code starts from here



output = ""

a = 1

b = 20

c = True



if 1__________

    output += "!!"

    if 2__________

        output += "!!"

    elif 3__________

        output += "$$"

else:

    output += ".."



output += ".."

print(output)




























1

2

3

4



3__________





1

2

3

4




1___________





1

2

3

4




2___________

























1.


b // 5 > a



2.



b % 2 >= a




3.


a + b + c



4.


(a * 20 == b) and c







if 1<br>output +=<br>if 2<br>
a 3. --- -- --- - -- 1 2 2. b% 2 >= a 4 3. a + b + c 2. 4. (a * 20 : b) and c == "/>
Extracted text: if 1 output += if 2 "!!" output += "!!" elif 3 output += "$$" else: output += output += ".." print (output) 1. b // 5 > a 3. --- -- --- - -- 1 2 2. b% 2 >= a 4 3. a + b + c 2. 4. (a * 20 : b) and c ==
Consider the following incomplete python code. It has three (numbered) blanks that<br>we need to fill up. Choose the correct conditional expression from the given choices<br>to fill up these blanks so that it prints the following output: !$$..<br># code starts from here<br>output<br>a<br>= 1<br>b<br>20<br>C<br>True<br>if 1<br>output +=

Extracted text: Consider the following incomplete python code. It has three (numbered) blanks that we need to fill up. Choose the correct conditional expression from the given choices to fill up these blanks so that it prints the following output: !$$.. # code starts from here output a = 1 b 20 C True if 1 output += "!!" if 2 output += "!!" elif 3 output += "$$" else: output += output += print (output)

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here