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

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"

can't seem to get it to break right when it print the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!