Empty string: Difference between revisions

Content added Content deleted
(initial draft)
 
(Add Python solution.)
Line 3: Line 3:
Some languages have syntax or semantics for dealing specifically with empty strings.
Some languages have syntax or semantics for dealing specifically with empty strings.


{{draft task}}
== Task ==


The task is to:
The task is to:
Line 12: Line 12:


[[Category:String manipulation]]
[[Category:String manipulation]]

=={{header|Python}}==
<lang python>s = ''
if not s:
print('String s is empty.')
if s:
print('String s is not empty.')</lang>