CPSC120B
Fundamentals of Computer Science I

Post-lab 5

For Loops

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

Details

Create a Python program that uses the turtle module to draw a fibre optic lamp. Our digital representation of a fibre optic lamp will simply be a set of lines of the same length, which converge upon a single point (the origin, in this case). There should be 30 lines even spaced out across the 180° necessary to draw the image.

Make sure to follow ALL of the courses' style guidelines in your solution.

Example

$ python3 lamp.py
Turtle Graphics Triangle

Submission

Submit your code on the course Inquire site.