Python Programming – John Zelle: Chapter 3 ex. 3

Write a program to calculate the molecular weight of a hydrocarbon based on the number of hydrogen, carbon and oxygen atoms.

Run =
This program finds the molecular weight of a hydrocarbon
The molecular weight of a hydrocarbon is 60.0524