I am a beginner in python and trying to write a script to ignore the specific part from the text file and print the rest of the line

Input file:

```
ValueError: "invalid literal for int(12) with base", 10: This is an error in line 3

```

I am trying to replace the first colon with space and ignore the text after the second colon followed by a numerical value

output

```
ValueError  "invalid literal for int(12) with base"

```

I have an idea of using dictionaries but not sure how to implement it. Please help me if methods that are more efficient. Any help would be appreciated. Thank you