Question: Please answer these 2 short questions about python programming language. 1. In the following code, you won't see any outcome. Why? counter = 0 while
Please answer these 2 short questions about python programming language.
1. In the following code, you won't see any outcome. Why?
counter = 0 while counter >= 0: counter += 1; print(counter)
a. It is in an infinite loop
b. It uses the colon in a wrong place
c. The last line with the 'print' function should be indented.
d. The semicolon generates an error
-----------
2. What is the keyboard shortcut to add a cell below the current cell (assuming already in command mode)?
a. a
b. c
c. x
d. b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
