Write a program that prints all the alphabets in a string and skips all other characters
Topic: Write a program that prints all the alphabets in a string and skips all other characters
Solution
string = "$john.snow#@Got.bad_ending/com" for ch in string: if (ch>='A' and ch<='Z') or (ch>='a' and ch<='z'): print(ch, end='') else: pass
List all Python Programs