Python -Schnur nach dem Zeichen

a_string = "ab-cd"
split_string = a_string.split("-", 1)
substring = split_string[0]
print(substring)
Strange Shrike