people look pretty nice here, so heres a little program i made to calculate the area of a triangle and a sqaure.
print "Please input the information about your rectangle"
length = input ("Length: ")
width = input ("Width: ")
print "Area", length * width
print "Perimeter", 2 * length + 2 * width
print "Area of the triangle", length * width / 2
print "Perimetre of the triangle is", 2* length + 2 * width / 2
user_input = raw_input ("Hope you enjoy, what is your name?")
print "Oh, ok", user_input
i'm new to python, tell me what you think :)


Sign In
Create Account


Back to top










