SyntaxFix
Write A Post
Hire A Developer
Questions
This piece of code:
for s in ("fukushima", "123 is a number", ""): print s.ljust(20), s[0].isdigit() if s else False
prints out the following:
fukushima False 123 is a number True False