@nedbat/

SlowMetallicInternet

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.15720214607035965","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"cyA9IDUKciA9IGxpc3QocmFuZ2UocypzKSkKCmZvciBpIGluIHJhbmdlKHMpOgogICAgaWYgaSAlIDI6CiAgICAgICAgcltpKnM6aSpzK3NdID0gcmV2ZXJzZWQocltpKnM6aSpzK3NdKQoKcHJpbnQocikK"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
s = 5
r = list(range(s*s))

for i in range(s):
    if i % 2:
        r[i*s:i*s+s] = reversed(r[i*s:i*s+s])

print(r)