Python Functions

Posted by linuxer on Nov 20, 2016 11:35 PM EDT
linuxconfig.org; By Nick Congleton
Mail this story
Print this story

Here's another trip back to math class. If you remember, functions took in a number, did something to it, then outputted the new value. They were often represented in tables with the input on one side and the output on the other. Functions in programming are similar. Sometimes they take input. Sometimes they don't. Much of the time they return a value as well, but they don't always have to. In every case, they are used to repeat an operation whenever they are used, and that's the greatest similarity with the math concept.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, Linux, Python

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.