i = 0
s = 0
while(i<=10):
    s = s+i
    i=i+1
avg = float(s)/10
print("the sum of first 10 numbers is :",s)
print("the average of first 10 numbers is :", avg

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: