Question: how would this be written in python? I did it but can't seem to get it to break right when it print the first yes'

how would this be written in python? I did it but can't seem to get it to break right when it print the first "yes' or "no"

Sequence of numbers Write a program that reads a sequence of integer numbers from the input andd in the sequence such that their sum is equal to 1000. If the sequence contains the numbers, the program must print Yes', if it doesn't, it must print 'No' Sample Input Sample Output . 123 456 789 1 1e 20 500 999 Yes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
