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