import re
naslov = "Tajkun (2020) onlajn sa prevodom"
re.sub("\([0-9]{4}\) onlajn sa prevodom", "", naslov)
More about the re module.
solved how can i delete certain words and numbers from a variable in python
import re
naslov = "Tajkun (2020) onlajn sa prevodom"
re.sub("\([0-9]{4}\) onlajn sa prevodom", "", naslov)
More about the re module.
solved how can i delete certain words and numbers from a variable in python