A steam locomotive is a type of steam engine used on railways .
A steam locomotive is a locomotive that produces its power through a steam engine .