Question: how would I type this up in python? Also, if the first input is 0, where would I put print(you haven't put in any numbers)?


how would I type this up in python? Also, if the first input is 0, where would I put print("you haven't put in any numbers")? I literally have everything but that and I can't figure how where to put it. much help would be appreciated.
value that sigties the eo ille p 7. A sentinel value is a special 8. The for loop is a count-cmurolled loop and is used to execute a loop hody a pre- dictable number of times. 9. Two keywords, break and cont inue. can be used in a loop 10. The break keyword immediately ends the innermust loop, which contains the break 11. The continue keyword ends only the current iteration TEST QUESTIONS Do test questions for this chapier online at wwwes.urmstrong eda/lang/pyftest html PROGRAMMING EXERCISES Pedagogical Note For each probiem, read it several times untl you understand it Think how to sobe the problem before coding Tramslate your logic into a program A problem often can be solved in many different ways. You should explore various solutions Sections 5.2-5.7 5.1 (Count positive and negative nambers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read. and computes the total and average of the input values (not counting zeros). Your program ends with the input 0. Display the average as a floating-point number. Here is a sample run Enter an integer, the input ends if it is 0 Enter an integer, the input ends if it is 0: 2 Enter an integer, the input ends if it is -1 Enter an integer, the input ends if it is o: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
