small medium large xlarge

02 Sep 2012, 04:20
KIM Jong-Wook (1 post)

Hi, this is KIM, a novice in programming.

I solved this problem from the thought that it is True when ‘full’ and ‘empty’ is not same. (ie, {full, empty} = {True, False}, {False, True})

So, I write the code just 1 line, like this

full != empty

I think this code won’t operate not correctly, but I just wondering it’s good code for novice. Because I think training in good way from start is very important especially for novice like me.

Thank you for reading my question, and please give me an answer:)


05 Dec 2012, 18:25
Paul Gries (46 posts)

It’s fine code for a novice! And, in fact, is something that I might write.