For a sentence, print the number of words, the longest and shortest word, the average word length and the words in alphabetical order (case-insensitive).
sentence = "Python makes complex problems feel simple"
words = sentence.split()
print(len(words), max(words, key=len), min(words, key=len))
print(round(sum(map(len, words)) / len(words), 2))
print(sorted(words, key=str.lower))
6 problems feel 6.0 ['complex', 'feel', 'makes', 'problems', 'Python', 'simple']
max/min with key=len pick the longest and shortest; map(len, …) feeds sum; key=str.lower sorts ignoring case.