Is it possible too see imported module codes in python. e.g append function?

I have homework to create(def) function which ever work like a append in python 3 so I was wondering can I see module code? or:I have homework to crea

I have homework to create(def) function which ever work like a append in python 3 so I was wondering can I see module code?

or:I have homework to create(def) function which ever work like a append in python 3 so I was wondering can I see module code?

Tags:work,code,