omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / empty-string / oracle.py
| 1 | # Independent reference for "Empty string" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | for s in ["", "abc", ""]: |
| 4 | if s == "": |
| 5 | print("s is empty") |
| 6 | else: |
| 7 | print("s is not empty: " + s) |