Creating Web Presentations
with W3C Slidy
Gerald Senarclens de Grancy <gerald@senarclens.eu>
Grazer Linuxtage, April 2014, Graz
Create multimedia presentations
We can...
def name(arg1, arg2, ..., argN): """ Textual explanation of what the function is supposed to do. """ # calculate result... return result
#!/usr/bin/env python3 def interest(capital, rate, years=1): """ Return the total interest of investing `capital` at `rate`. """ value = capital * (1 + rate) ** years return value - capital print(interest(100, 0.03)) result = interest(100, 0.03, 3) profit = interest(1300, 0.025, 5)