@fernandosavio/

WryUnsungApplet

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.08543519987132453","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"CmRlZiBnZW5faGV4YWdvbmFsKCk6CiAgICBuID0gMQogICAgd2hpbGUgVHJ1ZToKICAgICAgICB5aWVsZCAoMiAqIG4gKiAoMiAqIG4gLSAxKSkgLy8gMgogICAgICAgIG4gKz0gMQoKCgpmb3IgaSwgbnVtIGluIHppcChyYW5nZSg1MCksIGdlbl9oZXhhZ29uYWwoKSk6CiAgICBwcmludChudW0pCiAgICA="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
def gen_hexagonal():
    n = 1
    while True:
        yield (2 * n * (2 * n - 1)) // 2
        n += 1



for i, num in zip(range(50), gen_hexagonal()):
    print(num)