Challenge
Extract a function
…once and then pasted for the next two waypoints, with the variable names changed by hand. One wrong name in one copy and the display would lie about one waypoint only. Give the formula a name, call it…
Showing 51–53 of 53
Challenge
…once and then pasted for the next two waypoints, with the variable names changed by hand. One wrong name in one copy and the display would lie about one waypoint only. Give the formula a name, call it…
Example
The global keyword allows modifying a global variable inside a function.
Example
Return statement returns a value from function. Function can perform calculations and give result.