Dec-12-2018, 04:25 PM
The append method doesn't return anything (or rather it returns None), it modifies the list you appended to. You want to print empty_list.
This is an important thing about lists: they can be changed in place. You'll note that string can't, which is why most of the string methods return a new string.
This is an important thing about lists: they can be changed in place. You'll note that string can't, which is why most of the string methods return a new string.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures