Computer Science, asked by vathsanshri0, 4 months ago

Write a function dispword() in python to read lines from a text file „SAMPLE.TXT‟ and copy

all its contents but with replacing all the vowels with “#” to a new file “CONTEXT. TXT”​

Answers

Answered by rishisourav5
1

Hey Mate Here Is Your Answer..

Answer:

sentence = input('Enter your sentence: ' )

for letter in sentence:

if letter in 'aeiou':

print("vowel charcter is:",sentence)

break

Explanation:

The above code will Tell you vowel character of the Sentences it will not replace it with # to the new file ..

Rishi

Similar questions