Advertisement
GeorgiLukanov87

double_char_lists

May 23rd, 2022
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. string = input()
  2. testing = []
  3. while not string == 'End':
  4.     testing.append(string)
  5.     string = input()
  6.  
  7. for word in testing:
  8.     if word == 'SoftUni':
  9.         testing.remove(word)
  10.  
  11. result_list = []
  12. word = ""
  13.  
  14. for element in testing:
  15.     for letter in element:
  16.         word += letter * 2
  17.     result_list.append(word)
  18.     word = ""
  19.  
  20. for element in result_list:
  21.     print(element)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement