Python memotong string demi karakter
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)