An open API service indexing awesome lists of open source software.

https://github.com/bendog/analogies

Weird analogies I've come up with while teaching Python
https://github.com/bendog/analogies

Last synced: 4 months ago
JSON representation

Weird analogies I've come up with while teaching Python

Awesome Lists containing this project

README

          

# Analogies

Weird analogies I've come up with while teaching Python

## Functions are like contractors

**Functions are like contractors, they might do the same task, but once they're done they pack up and leave.**

Like your uber drivers all do the same task, but if you have a good chat to one driver about cats, the next driver wont know what you talked about.

## Functions inherit variables from parents

**Children inherit their parents genes, parents don't inherit the genes of their children.**

A function (child) will know the values of the variables set in the main (global/parent) part of your script, but the variables set in the function (child) will only be known to the function (child).