Skip main navigation

Creating Useable Functions

This video explains how to convert code, in which a turtle creates an equilateral triangle, into a function.

. . . . . . . . . . . . . . . . . . .

This video explains how to convert code, in which a turtle creates an equilateral triangle, into a function. Once the code is a function, the function can be called with various side lengths so different sized triangles can be created.

This article is from the free online

The Power of Object-Oriented Programming

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now