Python Cut String после символа
a_string = "ab-cd"
split_string = a_string.split("-", 1)
substring = split_string[0]
print(substring)
Strange Shrike
a_string = "ab-cd"
split_string = a_string.split("-", 1)
substring = split_string[0]
print(substring)