SHARE
TWEET

noseq

Mario_Regine Nov 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def noalfawhile(s):
  2. #@param s:string
  3. #return string
  4.   char=""
  5.   i=0
  6.   while(i!=len(s)):
  7.     if not(s[i].isalpha()):
  8.       char=char+s[i]
  9.     i=i+1
  10.   return char
  11.  
  12. def noalfafor(s):
  13. #@param s:string
  14. #return string
  15.   char=""
  16.   i=0
  17.   for i in range(0,len(s)):
  18.     if not(s[i].isdigit()):
  19.       char=char+s[i]
  20.     i=i+1
  21.   return char
  22.  
  23. def nomunwhile(s):
  24. #@param s:string
  25. #return string
  26.   char=""
  27.   i=0
  28.   while(i!=len(s)):
  29.     if not(s[i].isdigit()):
  30.       char=char+s[i]
  31.     i=i+1
  32.   return char
  33.  
  34. def nonumfor(s):
  35. #@param s:string
  36. #return string
  37.   char=""
  38.   i=0
  39.   for i in range(0,len(s)):
  40.     if not(s[i].isalpha()):
  41.       char=char+s[i]
  42.     i=i+1
  43.   return char
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top