CBSE BOARD XII, asked by Anonymous, 15 days ago

Write a program to generate a series of these numbers: 43,75,62,28,99,48. Find the sum of
those values which ends with 3 or 5​

Answers

Answered by haniyagaima11
2

Answer:

43+62=105

48+75=123

28+75=103

etc.

Answered by ujjwal99355
0

Answer:

import pandas as pd

import numpy as np

lst=[]

summ=0

a=[43,75,62,28,99,48]

ser=pd.Series(a)

for i in ser:

   if i%10==3 or i%10==5:

       summ=summ+i

       lst.append(i)

print(ser)

print('--------------------')

print("Numbers ending with 3 or 5 are:",lst,'And sum is',summ)

Explanation:

Attachments:
Similar questions