Essential Apple User Magazine

Creating Functions

Funky Functions

A function is a command that you enter into Python to do something. It’s a little piece of self-contained code that takes data, works on it and then returns the result.

STEP 1

It’s not just data that a function works on. They can do all manner of useful things in Python, such as sort data, change items, or .

You’re reading a preview, subscribe to read more.

More from Essential Apple User Magazine

Essential Apple User Magazine3 min readInternet & Web
The Best Free Apps Around…
Developer: BBC Media Applications Technologies Limited Website: www.bbc.co.uk/news/ Get the latest news on your tablet, directly from the BBC. Stories are arranged in topics including top stories, UK news, world news, politics, business, technology a
Essential Apple User Magazine1 min read
Mophie 3-in-1 Wireless Charging Stand
This wireless charger powers three of your Apple devices at once. The vertical stand on the left holds – and charges – your Apple Watch. The charger is built-in. You don’t have to use the one that came with your watch like you do with some charging s
Essential Apple User Magazine1 min read
Activating LockDown Mode On Your IPhone And Apple Watch
1 From the Home screen on your iPhone, open the Settings app Tap the Privacy & Security option, as shown. 2 Scroll to the bottom of this section. You see an option called Lockdown Mode, which is off by default. Tap it. 3 On the next screen, tap Turn

Related Books & Audiobooks