Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Storing the output of a for loop through each iteration
- def encrypt(key):
- for char in (key):
- val = (ord(char)) - (96)
- encrypt("lol")
- 12
- 15
- 12
- def encrypt(key):
- return [ (ord(char)-96) for char in key ]
- def encrypt(key):
- temp = list()
- for char in(key):
- temp.append((ord(char))-96)
- return temp
Add Comment
Please, Sign In to add comment