## Introduction to Programming using Python 1st Edition

$Real$ $Code$: sum = 0 for i in range(1001):      sum = sum + i      sum = 0 $Conversion$ $While$ $Loop$: i=0 while i<1001:        sum=sum+i        i=i+1