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." first_position = text.find(":") second_position = text.find(" ", first_position + 2) third_position = text.find(" ", second_position + 2) first_part = text[first_position + 2 : second_position] print(first_part) second_part = text[second_position + 1: third_position] print(second_part) d = {first_part : second_part} print(d)