generated from mwc/lab_names
	working on the triangle logic
This commit is contained in:
		@@ -3,4 +3,6 @@
 | 
				
			|||||||
# By MWC Contributors
 | 
					# By MWC Contributors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print("This program will calculate the area of a circle.")
 | 
					print("This program will calculate the area of a circle.")
 | 
				
			||||||
radius = float(input("What is the circle's radius? "))
 | 
					radius = float(input("What is the circle's radius?"))
 | 
				
			||||||
 | 
					area = 3.14*radius*radius
 | 
				
			||||||
 | 
					print(area)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,6 +2,6 @@
 | 
				
			|||||||
# ------------
 | 
					# ------------
 | 
				
			||||||
# By MWC contributors
 | 
					# By MWC contributors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my_name ="Chris"
 | 
					my_name = input("what is your name? ")
 | 
				
			||||||
greeting = "Hello, " + my_name
 | 
					greeting = "Hello, " + my_name
 | 
				
			||||||
print(greeting)
 | 
					print(greeting) 
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								shapes.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								shapes.py
									
									
									
									
									
								
							@@ -5,7 +5,13 @@
 | 
				
			|||||||
from turtle import *
 | 
					from turtle import *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def triangle(side_length):
 | 
					def triangle(side_length):
 | 
				
			||||||
    pass
 | 
					    right(45)
 | 
				
			||||||
 | 
					    forward(side_length)
 | 
				
			||||||
 | 
					    right(45)
 | 
				
			||||||
 | 
					    forward(side_length)
 | 
				
			||||||
 | 
					    right(45)
 | 
				
			||||||
 | 
					    forward(side_length)
 | 
				
			||||||
 | 
					    right(45)
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
def rectangle(height, width):
 | 
					def rectangle(height, width):
 | 
				
			||||||
    pass
 | 
					    pass
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user