num=1
count=0while num<=100:# 开始循环sum=0for n inrange(1,num+1):sum+= n
# print("sum=",sum," count=",count)
count +=sum;# print(count)
num +=1print(count)
3.
num=1
count=0while num<=10:# 开始循环sum=0for n inrange(1,num+1):sum+= n
# print("sum=",sum," count=",count)
count +=sum;# print(count)
num +=1print(count)
4.
# -*- coding:utf-8 -*-
num =input("请输入数字 : ")
num =int(num)if num %400==0or(num %4==0and num %100!=0):print("Yes")else:print("No")
5.
for i inrange(1,10):for j inrange(1,i+1):print(i,"*",j,"=",i*j,end='\t')print()
6.
num1=0
num2=1
index=3print(0)print(1)while index <=20:# 开始循环
newNum=num1+num2;
num1=num2;
num2=newNum
print(newNum)
index +=1