okay I tried to make a reverse of finding the num value of a letter bu it returns in an error :f
Traceback (most recent call last):
File "/home/darragh/Bureaublad/t.py", line 15, in <module>
numtolet('A')
File "/home/darragh/Bureaublad/t.py", line 6, in numtolet
letters
TypeError: list indices must be integers, not tuple
def numtolet(num):
letters['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
nummers = []
for i in range(1,25):
nummers.append(i)
pos = nummers.find(num)
poss = letters.find(pos - 1)
return poss