hdarwin

cstutoringcenter.com_Coordinate Planes

Jan 4th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. sum = 0
  2. for x in open("plane.txt", "r"):
  3.     l = x.replace("\n","").split(",")
  4.     if int(l[0]) < 0 and int(l[1]) < 0:
  5.         sum += 1
  6. print sum
Advertisement
Add Comment
Please, Sign In to add comment