Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- while True:
- total_list = []
- character = ''
- result = ''
- inputcode = input('LETTR $ ') + '-'
- inputcode.replace('/', '-')
- if inputcode == 'x':
- sys.exit()
- for i in range(len(inputcode)):
- if inputcode[i] not in ('-','/'):
- character += inputcode[i]
- else:
- total_list.append(character)
- character = ''
- # debug
- print(total_list)
- print(inputcode)
- i = 0
- for element in total_list:
- total_list[i] = chr(int(element))
- result += str(chr(int(element)))
- i += 1
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement