SHARE
TWEET

Untitled

a guest Jul 17th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def mask_3rd(s):
  2.     s_r = s.replace(s[2], '*')
  3.     result = s_r[:2] + s[2] + s_r[3:]
  4.     return result
  5. print(mask_3rd('logging'))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top