Range Function: What will the output of the following line of code be?
Code
print(list(range(10, 1, -1)))
Python Comprehensions: What will the ‘comprehension equivalent’ be for the following snippet of code?
Code
for sentence in paragraph:
for word in sentence.split():
single_word_list.append(word)