Linux Today: Linux News On Internet Time.

Python4Kids: New Tutorial - Increasingly Trivial Questions

Mar 23, 2011, 05:08 (0 Talkback[s])
(Other stories by brendanscott)

[ Thanks to Brendan Scott for this link. ]

"If you remember back a few tutorials ago, we learnt how to pickle objects so that we could get them back later. To pickle the object triviaQuestions (which was a list object) we first imported the pickle module, then opened a file and dumped the object into the file, then close()d the file:"

Complete Story

Related Stories: