daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 67 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. `fname = input("Enter file name: ")
  2. if len(fname) < 1 : fname = "mbox-short.txt"
  3. fh = open(fname)
  4. i = 0
  5. count = 0
  6. with open(fname, 'r') as fh:
  7.     for line in fh:
  8.         temp = line.split()
  9.         #print(temp[0])
  10.         count+=1
  11.         print(count)`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top