I was going through the book on Qt by Mark Summerfield when I came across this pretty nifty trick that assign True to a variable if its False and vice-versa. I liked it so much that I would like to remember it my whole life so I am posting it here.
variable = not variable
Just test it on your Python interpreter. You would absolutely love it the way I did. Cheers!!!
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment