Added week 7

This commit is contained in:
2026-04-20 09:35:37 +08:00
parent 9b90ac4340
commit 734ca9d761
10 changed files with 166 additions and 0 deletions

20
week7/Assignment/ex3.py Normal file
View File

@@ -0,0 +1,20 @@
def main():
print('==Assignment 3==')
list1 = [12, 15, 32, 42, 55, 75, 122, 132, 150, 180, 200]
iterhelper(list1)
print('==End Of Assi5==')
return 0
def iterhelper(lst):
itr,lenlst = 0,len(lst)
while itr<lenlst:
x = lst[itr]
if(x%5==0):print(x)
if(x>=150):break
itr+=1
if __name__ == '__main__':
main()