December 14th, 2012, 09:42 PM
Explanation of a certain command in python
Can anyone explain what the command !="": means in python? Thanks
December 14th, 2012, 10:23 PM
Python consists of tokens, expressions and statements. What is a "command"?
Now, you might see in code
meaning "if the content of the variable my_string is not equal to the empty string then execute the statements indented in block".
if my_string != "":
The tokens are
`if' `my_string' `!=' `""' `:'
and the conditional expression is
my_string != ""
[/code] are essential for python code and Makefiles!