Understand the term 'predefined function'
Identify and use appropriate predefined functions
random predefined function generates a random number between a range in Python:
import random #Generates a number between 10 and 100 print(random.randint(10, 100))
round function rounds a number to a specified number of decimal places.
x = 3.145 #Will give us 3.15 print(round(x, 2)) #Will give us 3.0 print(round(x, 0))
length function is used to calculate the length of an array or the length of a string.
fib = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89] #Should print 10 print (len(fib))
upper functions turn a string to lowercase or uppercase.
x = "John" y = x.lower() z = x.upper() print(y) print(z)
In your notes, write down an example of how each of the predefined function shown before could be used in Python
The following are key shortcuts for using BalfSlideView and reveal.js.
|→, PAGE DOWN, SPACE||Next slide|
|←, PAGE UP||Previous slide|
|SHIFT + →||Last Slide|
|SHIFT + ←||First slide|
|W||Widget Board/White Screen|
|C||Toggle Notes Canvas|
|DEL||Clears Whiteboard/Notes Canvas|
|S||Show Presenter Mode|
|SHIFT + D||Toggle Dark Mode|
|H||Goes to the Home Slide|
|META + P||Show Print options window|
In order to use the 'Start Remote' feature, you'll need to download JB Slide Controls from the Apple App Store. Once you have this you'll be able to control the slides using the app from you Apple Watch.
BalfSlideView and jamiebalfour.scot are copyright © Jamie B Balfour 2017 - 2023, 2010 - 2023. Content is copyright © Jamie B Balfour