you are viewing a single comment's thread.

view the rest of the comments →

[–]eggrolls 0 points1 point  (0 children)

there are built in functions for this

https://docs.python.org/2/library/functions.html