generated from mwc/lab_turtle
	I kept the star and added a square with different colors for sides and a triangle with different colors for sides.
It was rewarding to write this code. It was fun to see it do what I wanted it to accomplish. It was rewarding because I tried to make the triangle and I had the sides at 60 degrees but then saw I needed to make them 120 degrees. It was nice to be able to figure out my issue and solve it.
This commit is contained in:
		
							
								
								
									
										27
									
								
								drawing.py
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								drawing.py
									
									
									
									
									
								
							@@ -18,5 +18,32 @@ forward(100)
 | 
				
			|||||||
right(360 * 2 / 5)
 | 
					right(360 * 2 / 5)
 | 
				
			||||||
forward(100)
 | 
					forward(100)
 | 
				
			||||||
right(360 * 2 / 5)
 | 
					right(360 * 2 / 5)
 | 
				
			||||||
 | 
					penup()
 | 
				
			||||||
 | 
					forward(150)
 | 
				
			||||||
 | 
					pendown()
 | 
				
			||||||
 | 
					color("red")
 | 
				
			||||||
 | 
					forward(100)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					color("green")
 | 
				
			||||||
 | 
					forward(100)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					color("blue")
 | 
				
			||||||
 | 
					forward(100)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					color("orange")
 | 
				
			||||||
 | 
					forward(100)
 | 
				
			||||||
 | 
					right(90)
 | 
				
			||||||
 | 
					penup()
 | 
				
			||||||
 | 
					forward(150)
 | 
				
			||||||
 | 
					pendown()
 | 
				
			||||||
 | 
					color("yellow")
 | 
				
			||||||
 | 
					forward(50)
 | 
				
			||||||
 | 
					right(120)
 | 
				
			||||||
 | 
					color("red")
 | 
				
			||||||
 | 
					forward(50)
 | 
				
			||||||
 | 
					right(120)
 | 
				
			||||||
 | 
					color("blue")
 | 
				
			||||||
 | 
					forward(50)
 | 
				
			||||||
 | 
					right(120)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
input()
 | 
					input()
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								poetry.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								poetry.lock
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand.
 | 
				
			||||||
 | 
					package = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[metadata]
 | 
				
			||||||
 | 
					lock-version = "2.1"
 | 
				
			||||||
 | 
					python-versions = ">=3.10,<4.0"
 | 
				
			||||||
 | 
					content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user