<human>:  Who invented the transistor and when?
<bot>: That would be John Bardeen, Walter Brattain, and William Shockley. The transistor was invented in 1947 by John Bardeen, Walter Brattain, and William Shockley. They received a patent for the transistor in 1948.