Please have it written in python Convert the following forlo
Please have it written in python.
Convert the following for-loop to a while loop to get same output sum = 0 for i in range (1, 1000): if sumSolution
sum=0
 i=0
 while(i<1000)
    if(sum<1000)
    sum=sum+i
    else:
        break
    i=i+1
 print (\"sum: \",sum)
 print (\"i: \",i)

