आउटपुट निर्धारित करें:
Determine the output:
for i in range(20, 30, 10) :
j=i/2
print(j)
A)
B)
C)
D)
Explanation:
The range(20, 30, 10)
produces values 20 (and stops before 30). In the loop:
- When
i = 20
,j = 20 / 2 = 10.0
. - The output is
10.0
.
So, the answer is (C) 10.0.