Dark theme

String search


Given this first line:
text = "I am a: HAL 9000 computer. I became operational at the H.A.L. plant in Urbana, Illinois on the 12th of January 1992."
write a program that finds and extracts the two-part name of the computer and builds it into a dictionary with the name as the key and the number as the value.


Hints and one answer