Question: What is the output generated by the following code? j = 5 0 k = 1 0 0 sum = 0 for i in range

What is the output generated by the following code?
j =50
k =100
sum =0
for i in range ( j,500, k) :
sum = sum + j
print(sum )
A.
50
B.
0
C.
250
D.
150

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!