add words in list python code example
Example 1: how to add words to a list in python
list = []
list.append("hello")
Example 2: how to put words into list
sentence = input("Line: ")
split_sentence = sentence.split()
print(split_sentence)
list = []
list.append("hello")
sentence = input("Line: ")
split_sentence = sentence.split()
print(split_sentence)