We are hungry. There is an apple. There is an orange. Now we are thirsty.
filename = "firstthing.txt" file = open(filename) text = file.read lines = text.split('\n') for line in lines: line.split(" ",1)[0] print " There are the lines:"
lines = text.split('\n') next(lines) for line in lines: print line.split(" ",1)[0]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)