@SnoopJeDi/

DarkmagentaPaleSourcecode

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from itertools import cycle, islice

N = 5
s = ''.join(str(c) for c in range(N+1))

print(s)

s2 = ''.join((s, s[-2:0:-1]))

print(s2)

L = 42 # total char length

res = ''.join(islice(cycle(s2), L))

print(res)