CPSC150A
Scientific Computing

Activity 1

Introduction

diamond

Write a Python program that uses turtle graphics to draw a diamond.

Example

diamond
### Practice Problem #2

Write a Python program that uses turtle graphics to draw a square that is centered in the window.

Example

square
### Star

One of the first shapes you learned to draw in grade school was probably a star. It is a pretty easy shape to draw, looks pretty cool, and can be done entirely with straight lines. The only tricky part is determining how to go from one point of the star to the next. Today, you will figure that part out.

Details

Write a Python that uses the turtle module to draw a five-pointed star.

Example

star
#### Hint

Submission

Please show your source code and run your programs for the instructor or lab assistant. Only a programs that have perfect functionality will be accepted as complete.