click below
click below
Normal Size Small Size show me how
Python 2.7 - 2.14
| Question | Answer |
|---|---|
| color("color_name") | Changes Tracy's trail color |
| pinsize(90) | Changes Tracy's trail thickness |
| begin_fill() | starts filling a drawn shapes |
| end_fill() | stops filling in drawn shapes |
| circle (radius, extent, steps) | Can control the radius, degree, and number of points of a circle |
| def function_name(): | Write out a list of steps to remember and complete |
| Function | a way to group a set of commands so they can be called with one line of code. |
| function_name() | How to call a function and run it. |
| # | How to start off one line of comments |
| """ | How to start and end multiple lines of comments |
| variable_name = value | Assigns a variable to a name. |
| int(input(" ") | Changes the type of value to an integer |
| input(" ") | Saves user input |