boris-vlasenko

Звездочки между символами

Oct 16th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. s = input()
  5. #--1--
  6. new = ''
  7. for x in s:
  8.     new += x + '*'
  9. new = new[:-1]
  10. print(new)
  11.  
  12. #--2--
  13. print('*'.join(s))
Advertisement
Add Comment
Please, Sign In to add comment