omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / jewels-and-stones / oracle.py
| 1 | # Independent reference for "Jewels and stones" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | for s, j in [("aAAbbbb", "aA"), ("ZZ", "z")]: |
| 4 | print(s, j, sum(c in j for c in s)) |