So, I have this code in python but I want it to display a message if the string entered from user is not from "a" to "j" (case insensitive). So the user is not allowed to enter strings that are not in this range. How can I do that?
I have tried the codes below but it won't work.
words = "Hello world ace"
words = [word.lower() for word in words.split()]
for word in words:
print(sorted(word) == list(word))