Script
Method 1
#!/usr/local/bin/python3.7
f = open('rahul-dravid.txt', 'r')
for line in f:
print(line.strip())
f.close
Method 2
#!/usr/local/bin/python3.7
with open('rahul-dravid.txt') as f:
for line in f:
print(line.strip())
Background
KSuryaSJC-TBMBP:Python-scripts kiran.surya$ cat rahul-dravid.txt
Adelaide Test 2003. India versus Australia. Australia 556. India, through a mammoth partnership of 303
between Dravid and Laxman, recover from 85 for 4 to 477 for 7. Dravid is on strike on 199. The first
ball of the last and 90th over of Day three is being bowled. Dravid hits the ball to deep cover. He has
two choices: a) take a single, complete his double century but expose the tailender Anil Kumble to five
deliveries before the end of the day's play b) refuse to take the easy single, defend the next five balls
or risk taking a single off the last ball of the day thereby protecting Anil Kumble. Dravid refuses the
single that would take him to 200, and cannot force the last ball of the day for a single. Stranded on 199
not out overnight and have to endure a sleepless night. Never mind; team interests come first, ahead of
personal milestones. That's Dravid for you !!!
KSuryaSJC-TBMBP:Python-scripts kiran.surya$
Execution
Adelaide Test 2003. India versus Australia. Australia 556. India, through a mammoth partnership of 303
between Dravid and Laxman, recover from 85 for 4 to 477 for 7. Dravid is on strike on 199. The first
ball of the last and 90th over of Day three is being bowled. Dravid hits the ball to deep cover. He has
two choices: a) take a single, complete his double century but expose the tailender Anil Kumble to five
deliveries before the end of the day's play b) refuse to take the easy single, defend the next five balls
or risk taking a single off the last ball of the day thereby protecting Anil Kumble. Dravid refuses the
single that would take him to 200, and cannot force the last ball of the day for a single. Stranded on 199
not out overnight and have to endure a sleepless night. Never mind; team interests come first, ahead of
personal milestones. That's Dravid for you !!!
Method 1
#!/usr/local/bin/python3.7
f = open('rahul-dravid.txt', 'r')
for line in f:
print(line.strip())
f.close
Method 2
#!/usr/local/bin/python3.7
with open('rahul-dravid.txt') as f:
for line in f:
print(line.strip())
Background
KSuryaSJC-TBMBP:Python-scripts kiran.surya$ cat rahul-dravid.txt
Adelaide Test 2003. India versus Australia. Australia 556. India, through a mammoth partnership of 303
between Dravid and Laxman, recover from 85 for 4 to 477 for 7. Dravid is on strike on 199. The first
ball of the last and 90th over of Day three is being bowled. Dravid hits the ball to deep cover. He has
two choices: a) take a single, complete his double century but expose the tailender Anil Kumble to five
deliveries before the end of the day's play b) refuse to take the easy single, defend the next five balls
or risk taking a single off the last ball of the day thereby protecting Anil Kumble. Dravid refuses the
single that would take him to 200, and cannot force the last ball of the day for a single. Stranded on 199
not out overnight and have to endure a sleepless night. Never mind; team interests come first, ahead of
personal milestones. That's Dravid for you !!!
KSuryaSJC-TBMBP:Python-scripts kiran.surya$
Execution
Adelaide Test 2003. India versus Australia. Australia 556. India, through a mammoth partnership of 303
between Dravid and Laxman, recover from 85 for 4 to 477 for 7. Dravid is on strike on 199. The first
ball of the last and 90th over of Day three is being bowled. Dravid hits the ball to deep cover. He has
two choices: a) take a single, complete his double century but expose the tailender Anil Kumble to five
deliveries before the end of the day's play b) refuse to take the easy single, defend the next five balls
or risk taking a single off the last ball of the day thereby protecting Anil Kumble. Dravid refuses the
single that would take him to 200, and cannot force the last ball of the day for a single. Stranded on 199
not out overnight and have to endure a sleepless night. Never mind; team interests come first, ahead of
personal milestones. That's Dravid for you !!!
No comments:
Post a Comment