@Undefined/

BreakableSeagreenFrigatebird

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
17
inp = input('Write here: ')
output = inp.lower()
output = list(output)

slownik = {"a":1, "b":2, "c":3, "d":4, "e":5, "f":6, "g":7, "h":8, "i":9, "j":10, "k":11, "l":12, "m":13, "n":14, "o":15, "p":16, "r":17, "s":18, "t":19, "u":20, "w":21, "y":22, "z":23, "v":24, "x":25}

#zastepuje litery liczbami
for letter in output:
  if letter in slownik:
    output[output.index(letter)] = slownik[letter]

i=0
podzielone_na_grupy=[]
while i<len(output):
  podzielone_na_grupy.append(output[i:i+9])
  i+=9
print(podzielone_na_grupy)