Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ru = {
- '1' : 'A',
- '2' : 'B'
- }
- choose = input('')
- choose1 = choose.upper()
- lenn = len(choose1)
- print()
- listing = list(choose1)
- i = 0
- d = 0
- sum = []
- while i < lenn:
- sum += [ru[listing[i]]]
- # print( ru[listing[i]])
- i += 1
- d += 1
- if d == lenn:
- b = 0
- a = 0
- print('Готово!: ')
- for b in sum:
- print(b, end='')
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement