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 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 "Baking x layer" and then "x layer baked" where x is the ordinal form of 1 through 3 and then prints "All layers are baked!"
assembleCake: prints "Assembling cake..." then sleeps for 1 second then prints "Cake is assembled and ready to be iced!"
iceCake: prints "Icing cake..." then "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.8.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

baking_wijesooriya-1.1.8-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file baking-wijesooriya-1.1.8.tar.gz.

File metadata

  • Download URL: baking-wijesooriya-1.1.8.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for baking-wijesooriya-1.1.8.tar.gz
Algorithm Hash digest
SHA256 306314ecaf30b4f1efb9e5822947d19ea01bc0e24f1190b6833527d0f43ec688
MD5 0e4399cb44b2ba90643bc366bb899670
BLAKE2b-256 0d3ae30c15febdceefd78719a13808b1e5bc8705d7aa4785b56afa8fd671314f

See more details on using hashes here.

File details

Details for the file baking_wijesooriya-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: baking_wijesooriya-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for baking_wijesooriya-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dede99eee7e9603d5ff413b0aa8e68a76fdbccebc29f895b1ec45185e5c41c55
MD5 a8cfb1336d24bc16d5503ec9b70c052d
BLAKE2b-256 dbd1713bbd59dfe978e1af1306932c1c95ad6e05376f9809b3de123aec6ae8ad

See more details on using hashes here.

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