Advertisements
Advertisements
प्रश्न
Write a Python function that displays all the words containing @cmail from a text file "Emails.txt".
वाक्य को सही करें और फिर से लिखें
उत्तर
def show():
f=open("Email.txt",'r')
data=f.read()
words=data.split()
for word in words:
if '@cmail' in word:
print(word,end=' ')
f.close()
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?