Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def noNum(s):
- #@param s: string
- #@return string
- new_str = ''
- for i in range(len(s)):
- if not s[i].isnumeric():
- new_str+=s[i]
- return new_str
- def noNum1(s):
- #@param s: string
- #@return string
- new_str = ''
- c = 0
- while(c<len(s)):
- if not s[c].isnumeric():
- new_str+=s[c]
- c+=1
- return new_str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement