Re: [Tutor] Recognising Errors

2014-04-21 Thread Saba Usmani
Thanks for the advice and tips. I wasn't taking anything as an insult; I just have a problem with one of the staffs attitude responses. He needs sleep. Alan Gauld has been very helpful- a special thanks to you. Kind regards Saba On 21 Apr 2014, at 18:40, "Danny Yoo" wrote: >> If for some re

Re: [Tutor] Recognising Errors

2014-04-21 Thread Danny Yoo
> 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. You are missing the point of people point this out. Look at what the email archive thinks of your previous messages: https://mail.python.org/pipermail/tut

Re: [Tutor] Recognising Errors

2014-04-21 Thread Mark Lawrence
On 21/04/2014 07:20, Dave Angel wrote: 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 o

Re: [Tutor] Recognising Errors

2014-04-20 Thread Dave Angel
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

Re: [Tutor] Recognising Errors

2014-04-20 Thread Alan Gauld
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

[Tutor] Recognising Errors

2014-04-20 Thread Saba Usmani
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: