Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kode = "khl sc ghj"
- bokstaver = ['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','æ','ø','å']
- for bokstav in kode:
- if bokstav in bokstaver:
- plass = bokstaver.index(bokstav)
- hemmeligplass = plass - 3
- if hemmeligplass < 0:
- hemmeligplass = 27 - hemmeligplass #hvorfor 27????
- if hemmeligplass > 28:
- hemmeligplass = hemmeligplass - 29
- print(bokstaver[hemmeligplass],end='')
- else:
- print(" ",end='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement