Computer Science, asked by shariq786rajpoot, 7 months ago


3. Write a python program to enter a list and check whether the sum of digits of list
Is 100 or not.

Answers

Answered by rishimishra1902
1

Answer:

number_list = list(map(int,input().strip().split()))

print(sum(number_list)==100)

Explanation:

the program asks for the input of a number list

and prints True or False depending on the sum

i.e True for sum== 100

False for sum != 100

Similar questions