Changes between Version 110 and Version 111 of ControlSystems/SoftwareTeam/IntroToPython


Ignore:
Timestamp:
Sep 4, 2017, 11:34:08 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v110 v111  
    1717
    1818 * ''Variables'':  Things you assign to and read from.  Like in Algebra. `a="Dump Truck"` sets the variable A to the string "Dump Truck".   You can set them to numbers to or fancy things like lists.  They're basically the nouns.
    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
     23Much 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"
    2424
    2525{{{