Britain used steam locomotives until the 1980s.
See https://en.wikipedia.org/wiki/Retirement_of_steam_locomotive...
Germany apparently used them from time to time until 1994, but that was a function of East Germany being behind the Iron Curtain. My grandfather also used punch cards well into the 1980s in East Germany.