i find a code to seperate line, but it cut hafl of word "A very very long str" \n "ing from user input". so i want to ask how to keep the original word. its mean add \n after a number of word?
# inp = "A very very long string from user input"
# new_input = ""
# for i, letter in enumerate(inp):
# if i % 20 == 0:
# new_input += '\n'
# new_input += letter
#
# # this is just because at the beginning too a `\n` character gets added
# new_input = new_input[1:]
# print(new_input)