def display_vowel_words():
vowels = "AEIOUaeiou"
result = []
with open("Report.txt", "r") as f:
for line in f:
words = line.split()
for word in words:
clean_word = word.strip(".,?!")
if clean_word and clean_word[0] in vowels and clean_word[-1] in vowels:
result.append(clean_word)
print(" ".join(result))
This function first defines a string vowels containing all vowels.
def Change(X):
for K, V in X.items():
L1.append(K)
L2.append(V)
D = {1: "ONE", 2: "TWO", 3: "THREE"}
L1 = []
L2 = []
Change(D)
print(L1)
print(L2)
print(D)
छात्रों के लिए मोबाइल फोन की उपयोगिता — 120 शब्दों में रचनात्मक लेख लिखिए :