Empty string: Difference between revisions
Content added Content deleted
(→Tcl: Added implementation) |
(/* {{header|Python}} Comment.) |
||
Line 88: | Line 88: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
The empty string is printed by Python REPL as <nowiki>''</nowiki>, and is trated as boolean false, (as are most empty container types, by convention). |
|||
<lang python>s = '' |
<lang python>s = '' |
||
if not s: |
if not s: |