Advertisement
davide1409

noAlpha

Nov 14th, 2019
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def noAlpha(s):
  2. #@param s: string
  3. #@return string
  4.   new_s = ''
  5.   for c in s:
  6.     if not c.isalpha():
  7.       new_s+=c
  8.  
  9.   return new_s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement