51355/python-printing-string-without-vowels-using-comprehension
Hey @Anvit, you can use something like this:
def without_vowels(sentence): vowels = 'aeiou' print (''.join([ l for l in sentence if l not in vowels])) if __name__ == '__main__': n = raw_input("Enter a sentance") without_vowels(n)
Here's the code: check = input("Enter the character: ...READ MORE
Hi, num_words_list = len(original_str.split()) original_str.split() - split words in ...READ MORE
You can try this code list1=[] for i in ...READ MORE
suppose you have a string with a ...READ MORE
You can simply the built-in function in ...READ MORE
Try the strip() function: s = s.strip() If you ...READ MORE
Yes there is a function in python ...READ MORE
x="malayalam" y="" for i in x: ...READ MORE
Hi, the answer is a very simple ...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.