03 Gaddis Python Lecture PPT Ch03
03 Gaddis Python Lecture PPT Ch03
Chapter 3
Decision Structures and
Boolean Logic
if turtle.isdown():
turtle.penup()
if not(turtle.isdown()):
turtle.pendown()
if turtle.isvisible():
turtle.hideturtle()
if turtle.bgcolor() == 'white':
turtle.bgcolor('gray')
if turtle.pensize() < 3:
turtle.pensize(3)
if turtle.speed() > 0:
turtle.speed(0)