click below
click below
Normal Size Small Size show me how
SKStruck Python 4-6
Graves Skill Struck Python 4-6
| Code | Result |
|---|---|
| # print ("Hello World!") | debugging--Code deactivated for testing |
| # This is a comment | comment--Documenting the code |
| variable = 13 | Good integer |
| variable = thirteen | Doesn't work no quotes |
| variable = "thirteen" | Good string |
| variable = 5.9 | Good floating point |
| variable = True (or False) | Good Boolean |
| variable = "13" | Good string |
| variable = "True" (or "False") | Good string |
| 13 | integer |
| 3.14169 | floating point |
| True | Boolean |
| False | Boolean |
| "I live in Nevada." | string |
| "Nevada" | string |
| state | Mistake or variable |
| "13" | string |
| "True" | string |
| Integer | 54 |
| Boolean | True |
| Floating Point | 8.903 |
| String | "Hello" |
| Why use comments? | Documenting the code |
| How to create a line break in coding? | Enter / Return |
| More data over time | Upward trend |
| Less data over time | Downward trend |
| Correlation | Data moving in a similar way |
| Causation | One set of data showing how another will change |