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 Magazine1 min read
Next Issue
On sale Early December 2023 via digital platforms ■
Essential Apple User Magazine2 min read
Contact Posters
1 Open the Phone app, and tap Contacts at the foot of the screen. Tap your name and My Card, tap Contact Photo & Poster and then tap the Edit button. Tap the Plus button in the bottom right to design a new Contact Poster. 2 On the next screen, you ca
Essential Apple User Magazine2 min read
REC Pro Video Camera
From the people that brought us Camera+ comes REC – Pro Video Camera, a new app that promises pro-quality videos and simple, intuitive controls. While the smartphone and tablet’s own Camera apps do a great job of general snapping and filming, they’re

Related Books & Audiobooks