Print Consonants
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 2 )
s=”I love to learn from The Data Monk”
vowels=[“a”, “e”, “i”, “o”, “u”, “A”, “E”, “I”, “O”, “U”]
for i in range(len(s)):
if s[i] in vowels:
pass
else:
print(s[i])
s=”I love to learn from The Data Monk”
for i in s.lower():
if i not in (“a”, “e”, “i”, “o”, “u”):
print(i)