I’m currently working on some Python homework that’s due in tonight. I previously had this code already done though when going to submit it just before it’s now missing and I don’t remember exactly how to do it as I am on pretty basic levels of python coding for a course.
The Question: Write a Python program using a “While” loop that will ask the user to enter a number as long as the user wants to. When the user is finished, the program should then display the following:
• Number of positive numbers entered by the user
• Number of zeroes entered by the user
• Number of negative numbers entered by the user
Current code I have:
numInput = int(input("Please enter a number: ")) conInput = input("Would you like to input more numbers? (Y/N) ")) while conInput == Y: numInput = int(input("Please enter a number: ")) conInput = input("Would you like to input more numbers? (Y/N) "))
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.