How would I write a program that inputs a string that represents a binary number? : <p>Question: How would I write a python program that inputs a string that represents a binary number?
I'm stuck on this one in my CIS class.</p>

<p>Prompt: The program can only contain only 0s and 1s with no other characters (not even spaces)
If it does not, display an error message. If it is a valid binary number, determine the number of 1s that it contains. If it has exactly two 1s, display "Accepted". Otherwise, display "Rejected". All input and output should be from the console.</p>
