CPSC120B
Fundamentals of Computer Science I

Post-lab 1

Introdution to Linux & Python

In this post-lab you will demonstrate your understanding of the turtle module by creating a simple drawing.

Details

Create a Python program that uses the turtle module to draw a 3-dimensional cube (as shown below). A 3-dimentional cube can be obtained by drawing two diamonds offset in the x direction by a fixed amount, and connecting the corresponding points with straight lines. The length of each side of the cube should be 100 pixels, which is also the amount the two diamonds should be offset from one another.

Example

$ python3 cube.py
Turtle Graphics Triangle

Submission

Submit your code on the course Inquire site.