2. Mr. Python is too lazy.
His room is always a mess.
He asked to the God of Python.
“How can I tide up my toys?”
3. The God replied from the heaven.
“Use the list. The charm is “Abracadabra [ ].”
Mr. Python said “L=[ ].”
What a miracle! Some boxes were fallen from the heaven.
The God said. “Tide up the toys using these boxes.”
4. OK. Everything is packed into the list.
To pick up “Teddy”, just say “L[3].”
5. To sort the toys in alphabetical order, just say “L.sort().”
Note that L is a list object and sort() is a function defined
in the object called “method.”
6. Mr. Python is impatient, too. He complained to the Go
“I’d like to pick my toys immediately.”
The God replied from the heaven again.
“Use the dictionary. The charm is “Abracadabra {}.”
7. Using lists and dictionaries, Mr. Python could manage his
efficiently and lived happily ever after.