import math


def divide(string, length):
	"""
	Divides a string into multiple substrings of equal length.
	If there is not enough for the last substring to be equal,
    it will simply use the rest of the string.
	Can also be used for things like lists and tuples.

	:param string: string to be divided.
	:param length: length of each division.
	:returns: list containing the divided strings.

	Example:
	>>>> a = divide('Hello World!', 2)
	>>>> print(a)
	['He', 'll', 'o ', 'Wo', 'rl', 'd!']
	"""
	return [string[length*x:length*(x+1)] for x in range(int(math.ceil(len(string)/length)))]