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)
Show that the energy required to build up the current \( I \) in a coil of inductance \( L \) is \( \frac{1}{2} L I^2 \).
Simar, Tanvi and Umara were partners in a firm sharing profits and losses in the ratio of 5:6:9. On 31st March, 2024 their Balance Sheet was as follows:
Umara died on 30th June, 2024. The partnership deed provided for the following on the death of a partner:
Write a letter to the editor of a local newspaper expressing your concerns about the increasing “Pollution levels in your city”. You are an environmentalist, Radha/Rakesh, 46, Peak Colony, Haranagar. You may use the following cues along with your own ideas: