They are arbitrary Python functions (or whatever other language you want to use). Serverless platforms let developers deploy simple functions without having to provision a VPS and all the stuff that comes with it (operating system, networking, etc). You get charged by the millisecond as the function runs.