Question: Examine the following code, and select all statements that are true: # loop (A) for i in range(len(s)): print(1) # loop (8) for ch in
Examine the following code, and select all statements that are true: # loop (A) for i in range(len(s)): print(1) # loop (8) for ch in s: print(ch) Ich from loop (A) williterate through the same values as i from loop (B). ch in loop (A) refers to the same value as to s[i] in loop (B). loop (A) and loop (B) execute the same number of iterations, loop (A) completes a total of len(s) 1 iterations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
