Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- from fractions import Fraction
- with open('bunsuu.csv', 'r') as f:
- reader = csv.reader(f)
- ans = Fraction()
- for row in reader:
- ans += Fraction(int(row[0]), int(row[1]))
- print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement