19 | | * ''Control Structures'': These are instructions like IF this is true THEN do that…. These are like grammar rules, like use active voice, or use punctuation. |
20 | | * ''Functions'': These do things. They take nouns as arguments, do something, and can return nouns. In `redCar = paintCarRed(blueCar)`, `paintCarRed` is a function. They're the verbs, they do things, and they take variables and return variables. Some functions are built in to Python, but you can create your own. |
21 | | * ''Packages'': A lot of other people have written functions to do things. A lot of things. When these things are bundled together they're called ''packages''. You can tell a computer to use a library and save your self a lot of typing. |
22 | | |
23 | | Much like in English, you blend all of these together to create stories, or ''programs''. Both have a beginning middle and end. So lets write the first program that all programmers start with: "Hello World" |
| 19 | * ''Control Structures'': These are core programming language instructions like IF this is true THEN do that…. These are a lot like grammar rules, like: use active voice, or use punctuation. They're how you get stuff done. |
| 20 | * ''Functions'': These do things. They take nouns as arguments, do something, and can return nouns. In `redCar = paintCarRed(blueCar)`, `paintCarRed` is a function. They're the verbs, they do things, and they take variables and return variables. Many functions are built in to Python, but you can (and should) create your own. |
| 21 | * ''Packages'': A lot of other people have written functions to do things. A lot of things. When these things are bundled together they're called ''packages'' which you can download and use. You can tell your program to use a package and save your self a lot of typing, and do things that would require 2 or 3 college degrees without all that study. |
| 22 | |
| 23 | Much like in English, you blend all of these together to create stories, or ''programs''. So lets write the first program that all programmers start with: "Hello World" |