Because of the varying lengths of the codes for the characters Morse code was unsuitable for machine encoding and decoding. There was a great intrest in replacing the human telegrap operators vith machines, and in the 1870's the Baudot code was invented by a Frenchman named Emilie Baudot.
The Baudot Code used the same number of signal elements (bits) to represent each character, and was far better suited to machine encoding and decoding.


The five-bit code could generate only 32 possible combinations, not enough to represent the 26 characters of the alphabet, the 10 decimal digits, etc. Therfore Baudot used two shift-control characters (1111 and 11011) to select one of the two character sets each composed of 26 and 28 characters.
Code  L   F
11001 A   -
10011 B   ?
01110 C   :
10010 D   Who are you?
10000 E   3
10110 F   Not allocated
01011 G   Not allocated
00101 H   Not allocated
01100 I   8
11010 J   Bell
11110 K   (
01001 L   )
00111 M   :
00110 N   ,
00011 O   9
01101 P   0
11101 Q   1
01010 R   4
10100 S   ,
11100 U   7
01111 V   =
11001 W   2
10111 X   /
10101 Y   6
10001 Z   +
00000 BLANK
11111 Letters(L) shift
11011 Figures(F) SHift
00100 SPACE
00010 Carrage Return
01000 Line Feed