Run
# Given string x = 'apple,banana,cherry,mango,fig' # Split string with number of splits constrained to 3 values_list = x.split(',', 3) # Print split values print(values_list)
Output