Nitric acid is not used for the preparation of hydrogen from metals. why?
For example
When zinc reacts with nitric acid it forms zinc nitrates, nitrogen oxide, and water.
That is why nitric acid is not used for the preparation of hydrogen gas from the metal