Sample of error handling for the case that an invalid atom type is given resulting in a ValueError. Also I snuck in printing in place because that seemed like a reasonable thing the user would want.
Sample of error handling for the case that an invalid atom type is given resulting in a ValueError. Also I snuck in printing in place because that seemed like a reasonable thing the user would want.