DiYane

Double Char

Jul 3rd, 2023 (edited)
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | Help | 0 0
  1. while True:
  2.     string = input()
  3.  
  4.     if string == "End":
  5.         break
  6.  
  7.     if string != "SoftUni":
  8.         doubled_string = ''.join(c * 2 for c in string)
  9.         print(doubled_string)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment