Following a Python Tutorial – Part 3

This resolution post begins where Python Tutorial – Part2 left off.

Documentation string multi-lineAnnotation that show the type of the function and its parameters:ListsLists as stackUsing collections as list to access extremes, popleft example:List comprehensionsNested List comprehensionsDel instruction for listsTuples and secuencesThe inverse operation is also possible and it is recognized as unpack sequences

x, y, z = t

About Julita Inca

Ingeniero de Sistemas UNAC, Magíster en Ciencias de la Computación PUCP, OPW GNOME 2011, Miembro de la GNOME Foundation desde el 2012, Embajadora Fedora Perú desde el 2012, ganadora del scholarship of the Linux Foundation 2012, experiencia como Admin Linux en GMD y Especialista IT en IBM, con certificaciones RHCE, RHCSA, AIX 6.1, AIX 7 Administrator e ITILv3. Experiencia académica en universidades como PUCP, USIL y UNI. HPC researcher, Leader of LinuXatUNI Community, a simple mortal like you!
This entry was posted in FEDORA, GNOME, τεχνολογια :: Technology, Programming and tagged , , , , , , , . Bookmark the permalink.

One Response to Following a Python Tutorial – Part 3

  1. Simon says:

    Just a tip – rather than something like “print(my_function.__doc__)”, you can also just run “help(my_function)”. Similarly, if you want to see the docs for an imported module like “re”, you can just “help(re)”…

    Equivalent to printing out the doc string, but with a nicer UI… it runs it through a pager like ‘less’ so you can scroll up and down and search, etc…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s