AttributeError: 'Entry' object has no attribute 'split'
input
is an instance of an Entry
object. Like the error says, it has no method split
. Since it is an Entry
object, it is not a string object. You must use methods to get strings into and out of Entry
objects.
input_value = input.get()
length = input_value.split()