def starts_with_dm(): with open('DELHI.TXT') as file: for line in file: if line.startswith('D') or line.startswith('M'): print(line) starts_with_dm()
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments