Empty string: Difference between revisions

Add Python solution.
(initial draft)
 
(Add Python solution.)
Line 3:
Some languages have syntax or semantics for dealing specifically with empty strings.
 
{{draft task}}
== Task ==
 
The task is to:
Line 12:
 
[[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>
Anonymous user