Phản Hồi về: 100 bài code lập trình python từ cơ bản đến nâng cao 17/07/2024 vào lúc 6:12 chiều #5288 Vi Tính Tấn DânQuản lý BÀI TẬP : 44 n=int(input()) a=list(map(int,input().split())) s=0 for i in range(0,len(a)): if i%2==0: s+=a[i] print(s) BÀI TẬP : 45 n=int(input()) a=list(map(int,input().split())) tong=0 for i in range(len(a)): if a[i]%2==0: tong+=a[i] if tong==0: print(‘-‘) else: print(tong) BÀI TẬP : 46 n,x=map(int,input().split()) a=list(map(int,input().split())) dem=0 vt=0 for i in range(len(a)): if x==a[i]: dem+=1 vt=i break if dem==0: print(‘No’) else: print(‘Yes’) print(vt)