Here is my code:
lstInput = input('Type here: ')
lst = list(lstInput)
def is_sorted(lst):
if len(lst) == 1:
return True
else:
for x in range(len(lst)):
if lst[x] > lst[x+1]:
return False
return True
is_sorted(lst)
When I try to run it in zybooks, my class textbook, I get an EOF error for lstinput = input("Type here: "). I do not get an error in IDLE. Please help. Thanks