求Python代码Python代码这个应该怎么写

exl :输入5名学生的成绩,求平均分数。( for 循环、 while 循环实现)
ex2:依次接收用户从键盘输入的整数并求其累加和,当累加和第一次大于100时终止输入,并在屏幕上输出整数的数及其累加和。
ex3:求200以内能被17整除的最大整数
ex4:求1100之间所有偶数之和。
代码怎么写😫

https://www.runoob.com/python/python-tutorial.html


# (1)
#for循环实现
'''
s=0
for i in range(1,6):
    a=int(input(f"请输入第{i}位学生的成绩:"))
    s+=a
print(s/5)
'''
#while循环实现
'''
s=0
i=1
while i<=5:
    a=int(input(f"请输入第{i}位学生的成绩:"))
    s+=a
    i+=1
print(s/5)
'''

#(2)
'''
s=0
i=0
while s<=100:
    a=int(input("请输入数字:"))
    s+=a
    i+=1
print("整数的数为%d,累加和为%d"%(i,s))
'''

#(3)
'''
for i in range(17,201):
    if i%17==0:
        max=i
print(max)
'''

#(4)
s=0
for i in range(2,1101,2):
    s+=i
print(s)

把注释去掉就行了,不知道写的对不对,有疑问可以问