Apr-29-2020, 10:16 AM
(This post was last modified: Apr-29-2020, 10:16 AM by pyzyx3qwerty.)
Try this:
first = input("Enter a sentence : ") second = "" vowels = ['a','e','i','o','u'] for i in first: if i in vowels: second += i.upper() else : second += i print( second)And output:
Output:Enter a sentence : This is a test
ThIs Is A tEst
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs