Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in or
create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 47: |
Line 47: |
|
| |
|
| == Part 2: Basic Python concepts == | | == Part 2: Basic Python concepts == |
| ;Interactive
| |
| *math
| |
| :*addition
| |
| :*subtraction
| |
| :*multiplication
| |
| :*division
| |
| *types (int and float)
| |
| *variables
| |
| :*assignment
| |
| :*types
| |
| :*naming
| |
| *types (booleans)
| |
| :*equals, not equals, gt, lt
| |
| :*evaluate single
| |
| :*type
| |
| :*evaluate multiple
| |
| *types (string)
| |
| :*strings vs numbers
| |
| :*quoting and escaping
| |
| :*concatenation (same type, different types)
| |
| :*char position
| |
| :*length
| |
| *functions
| |
| :*type again
| |
| :*exit
| |
| :*help
| |
| :*common string functions (upper, lower, index)
| |
| :*string operators (in)
| |
| :*print
| |
| *if statements
| |
| :*indenting
| |
| :*compound conditionals
| |
| :*variable vs literal evaluation
| |
| :*changing variables conditionally
| |
| :*else, elif
| |
|
| |
|
| | | * ''from tutorial'' |
| ;File
| |
| *python vs ipython | |
| *comments
| |
| *printing
| |
| *:single line printing
| |
| *:newlines
| |
| *:multiline printing
| |
| *:advanced if/then example
| |
|
| |
|
|
| |
|
| [[Category:DS4UX_(Spring_2016)]] | | [[Category:DS4UX_(Spring_2016)]] |