omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / copy-a-string / oracle.py
| 1 | # Independent reference for "Copy a string" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | src = "Hello" |
| 4 | dst = list(src) # an independent copy |
| 5 | dst[0] = "J" |
| 6 | print("source: " + src) |
| 7 | print("copy: " + "".join(dst)) |