02 Sep 2012, 04:20
Generic-user-small

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:)

KIM

05 Dec 2012, 18:25
Paul_mugshot_pragsmall

Paul Gries (44 posts)

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

  You must be logged in to comment