CS 1301 Chapter Notes - Chapter 3: For Loop, Control Flow, Module File

49 views1 pages

Document Summary

Canvas- an area inside window on which we can draw. Object- thing to which a variable can refer; this could be screen window, or one of turtles we have created. Methods- instructions that all turtles know how to respond to; function that is attached to an object; invoking or activating method causes object to respond in some way. Range- built- in function in python for generating sequences of integers; useful when we need to write a for loop that executes fixed number of times. Attributes- properties; some state or value that belongs to a particular object: ex. tess has a color. Instance- has its own attributes and methods; object of certain type, or class, tess and alex are different instances of class turtle. For loop- statement in python for convenient repetition of statements in body of loop.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents