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, sign up to read more.

More from Essential Apple User Magazine

Essential Apple User Magazine2 min readInternet & Web
Setting Up Email Configure it
1 Tap the Settings icon located on the Home screen of your iPad and scroll down on the left side panel and select the Mail option. From here, tap the Accounts option and then tap the Add Account link to start adding a new account on your iPad. 2 Your
Essential Apple User Magazine1 min readComputers
IPad SURVIVAL GUIDE
We're glad to see the back of a really strange 2020 but it wasn't all bad. Apple brought us some cracking new products and presented them in a new way too. OS's, iPhones, iPads, Apple Silicon along with the new Mac mini and MacBook Air that contain t
Essential Apple User Magazine3 min readComputers
The Keyboard On-screen Typing
1 Tap on any box or screen where text can be entered, and the virtual keyboard appears as shown. This is true for emails, messages, search fields and indeed any area of the screen where you can enter text. 2 The keyboard’s top bar icons differ accord