Saba Usmani Wrote in message:
>
>
If for some reason you can't read this code properly as outlook has formatted
it to
>look messy/cluttered; you do not have to respond
It'd save trouble if you continued in the same thread you
started, instead of repeatedly starting a new one. And you
On 20/04/14 19:06, Saba Usmani wrote:
...such as a binary number with more than 8 digits or non-binary
values. What do I have to add and where do I add it?
You need to either write a function to check the inputs - have you
learned about functions yet? - or write some if/else checks after you
Hi,
I have designed some code, but I want it to be able to recognize invalid inputs
- such as a binary number with more than 8 digits or non-binary values. What do
I have to add and where do I add it?
print "Welcome to the binary -> decimal / decimal -> binary converter!"loop =
Truewhile loop: