Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('9.csv')
- cnt = 0
- for s in file:
- #a = sorted(list(map(int, s.split(';')[:3])))
- #if a[0] + a[1] > a[2]:
- # cnt += 1
- s.split(';')
- a = int(s[0])
- b = int(s[1])
- c = int(s[2])
- if a + b > c and a + c > b and c + b > a:
- cnt += 1
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement