Skip to main content

Contains functions named after the steps of baking to help with cake baking analogy for beginners.

Project description

Learning tool for teaching the Cake Baking Analogy

Meant to make the analogy literal so that beginners can better understand the basics of functions.

1.1.0 Functions: (All functions sleep one second after they run except complete) measure: waits one second then prints its string argument mixIngredients: sleeps for one second then prints "Batter is mixed" pourBatter: waits one second then prints "Batter has been poured" setOvenTempTo: prints "Setting oven temp", waits 0.2 seconds, prints "Heating up...", prints "Ready in x hours" where x is the oven temperature divided by 100 then stops and prints "Oven temperature set to y degrees" where y is its int argument bakeBatter: prints "Baked x layer" where x is the ordinal form of 1 through 3 and then prints "All layers are baked!" assembleCake: sleeps for 1 second then prints "Cake is assembled and ready to be iced!" iceCake: prints "Cake is iced!" complete: executes every function and takes unlimited string arguments which are use in measure and uses 500 for setOvenTemp argument.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baking-wijesooriya-1.1.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

baking_wijesooriya-1.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page