Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isotopes = [79, 81]
- abundances = [50.69, 49.31]
- weighted = map(lambda x, y: x * y, isotopes, abundances)
- # multiply isotope mass and abundance
- weighted = sum(weighted)/100
- # sum them up and divide by 100
- print weighted
- >>>> 79.9862
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement