Question: please slove this question again because it is removed from app 1. Translate the following for loops to equivalent while loops: a. for count in

please slove this question again because it is removed from app
1. Translate the following for loops to equivalent while loops: a. for count in range(100): print(count) b. for count in range(1, 101): print(count) c for count in range(100, 0, -1): print(count) 2. The factorial of an integer N is the product of the integers between 1 and N, inclu- sive. Write a while loop that computes the factorial of a given integer N. Projects 9. Consider the following code segment: count = 1 while count = 10: print(count, end "") Which of the following describes the error in this code? a. The loop is off by 1. b. The loop control variable is not properly initialized. c. The comparison points the wrong way. d. The loop is infinite. 1. Write the outputs of the following loops: a. for count in range(5): print(count + 1, end b. for count in range(1, 4): print(count, end - c. for count in range(1, 6. 2): print(count, end."" d. for count in range(6. 1. -1): print(count, end") 2. Write a loop that prints your name 100 times. Each output should begin on a new line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
