








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A comprehensive guide to programming concepts, focusing on library routines, procedures, and functions. It explains the differences between functions and procedures, explores the use of library routines in python, and provides pseudocode examples for implementing procedures and functions. Ideal for students learning the fundamentals of programming and understanding how to utilize pre-built routines and functions effectively.
Typology: Schemes and Mind Maps
1 / 14
This page cannot be seen from the preview
Don't miss anything!









Built in Functions Many programming languages will use built in functions ready to be used. What built in functions can you remember for Python? bin, chr, float, int, max, min, ord, len, round When thinking about the difference between Functions and Procedures, what do all of the above have in common? They all return a value
Library Routines So what are Library Routines? How are they different? A tested and ready to use routine available in the development system of a programming language that can be incorporated into a program What examples can you think of that we have used in Python? print, input (have a little cross over with functions) - Standard Library Routines Math, random, time - Libraries that we can pull into our code if we require them
Library Routines - Pseudocode
Procedures in Pseudocode (no parameters)
Procedures in Pseudocode (parameters) PROCEDURE
Functions in Pseudocode (no parameters)
Functions in Pseudocode (parameters) FUNCTION
Function Pseudocode Task 2 Write a Function using Pseudocode that returns the sum of an array of numbers Your function should take one parameter (array of numbers) and return an integer. Your function should add all of the numbers in the array together and return the value. Call your function 5 times with different values each time.
Keywords Complete the Programming Keywords on Google Classroom This needs to be completed for homework if not done this lesson