That link is really useful, thanks. I'll spend some time to figure out the more proper ways of formatting things. The lsit thing sounds interesting, I'll take a look at that as well.
I have the if statement with the variable CanCalc separate from the other error detection, so that they can display separately as well as simultaneously.
(May-02-2017, 05:13 PM)nilamo Wrote:Quote:if(a==0): print("\nThe \"A\" coefficient can't be equal to zero.\n") if((a==0)&(CanCalc==False)): print("and") if(CanCalc==False): print("\nYou can't enter letters.\n")
Why not...
if(a==0): print("\nThe \"A\" coefficient can't be equal to zero.\n") if(CanCalc==False): print("and") print("\nYou can't enter letters.\n")
I have the if statement with the variable CanCalc separate from the other error detection, so that they can display separately as well as simultaneously.