Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ararik

  1. ararik

    How to print the first few lines in Python from a text?

    Hi I am trying to read and print lines from a text. I can print ALL the lines by typing: myfile = open("c:/test/buffet.txt","r") for line in myfile: ... print line Q1. How can I print the first 10 lines? Q2. How can I print the every other line? Also, How does Python define a line? How...

Part and Inventory Search

Back
Top