85505/print-the-character-from-string-if-character-is-alphabet
You can use str.isalpha()
For example:
s = 'a123b' for char in s: print(char, char.isalpha())
OUTPUT
a True 1 False 2 False 3 False b Tru
To print the message that file is not ...READ MORE
You can use word.find('o') as well to ...READ MORE
class Solution: def firstAlphabet(self, s): self.s=s k='' k=k+s[0] for i in range(len(s)): if ...READ MORE
If you want to remove the 'J' ...READ MORE
Try this: if cookie and not cookie.isspace(): # the ...READ MORE
Hey Charlie, it's certainly possible to pull ...READ MORE
Try below code string = input("Enter a string: ...READ MORE
Hi. Good question! Well, just like what ...READ MORE
FWIW, the multiprocessing module has a nice interface for ...READ MORE
Try using os.system: os.system("script2.py 1") execfile is different because it is ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.