This online polygon calculator helps to calculate perimeter and area (using length of the side, radius of circumcircle, apothem). To do so, we have used the split() function, which divides the string it is called by, at the argument specified (space in this case). This tool was created using Python, or more specifically ESRI's ArcPy module. Side of a regular n-sided polygon circumscribed in a circle; Determine the position of the third person on regular N sided polygon; Area of a n-sided regular polygon with given side length; Python Program for Find the perimeter of a cylinder; Java Program for Find the perimeter of a cylinder; Program to find the Area and Perimeter of a Semicircle. I used the following in a python node but it didn't work… prims = hou. 96 FAQ-488 How to get the polygon area within a contour line? Last Update: 10/15/2018. You'll probably have a meaningful area, like a watershed, but I'm just going to draw one for an example, roughly following some roads. Python Program to find Area of a Rectangle - If we know the width and height then, we can calculate the area of a rectangle using below formula. " If you were to cut the polygon out of cardboard or wood, the centroid would be the point where you could balance the polygon on a pin. This is a Python 3 implementation of the Sloan's improved version (FORTRAN 77 code) of the Nordbeck and Rystedt algorithm, published in the paper:. For example, this rug can be described as a single irregular polygon. Creating a Polygon. Return to the directory window for the Python examples. shapetransform() and Turtle. Using those values we will calculate the Perimeter of a triangle, Semi Perimeter of a triangle and then Area of a Triangle. When you want to create new lines or polygons, the most likely way you'll do that is by digitizing the vertices that make up the feature. Calculates the area and perimeter of a convex polygon. Re: Finding Centroid of Closed Polyline Area The response by @*Esquivel, Luis is probably the best, but watch out. 3D programming in python. Mar 07, 2010 · For geo-fencing, I used Polygonal geo-fencing method where a polygon is drawn around the route or area. Python expressions can be created using properties from the geometry object (Type, Extent, Centroid, FirstPoint, LastPoint, Area, Length, IsMultipart, and PartCount). UPDATE: The class now works with sequences of points. Construction accuracy is not critical. Been trying to write a python script but am stumped. Math FAQ on Geometric Formulas). So first, my technique is similar to the ray-casting algorithm. 5 * base * height print(get_area(10, 15)) This will give the output: 75. There is an option to create a polygon object (containing part of the specified boundary) or just a line. I certainly don't claim originality for this method. PostGIS is a spatial database extender for PostgreSQL object-relational database. Spatial analysis is such an interesting discipline because it allows the evaluation of every phenomena related to their location. The process to plot polygons in python can be different depending on whether you are happy to plot just the edges of the polygon, or you would also like to plot the area enclosed by the polygon. The following are code examples for showing how to use geojson. 以上、評価指標IoUのpythonでの実装についてでした。 ※2018/11/21追記. However, for some parts of the data processing the workflow on a GIS Graphical Computer Interface (GUI) can be repetitive and time consuming. If you find missing recipes or mistakes in existing recipes please add an issue to the issue tracker. List the vertices starting anywhere and moving counterclockwise around the polygon: (x 1, y 1), (x 2, y 2), …, (x n, y n). Determining a Point. Then I realized panning/zooming weren't working as intended, so I added a bit of logic to make that work. Calculate the area of a 4x4 square whose bottom left corner sits at the origin of the grid ([0, 0]):. Can you please tell how to give irregular polygons as input to the above code. Class to compute if a point(s) lies inside/outside/on-side of a polygon. ForceToMultiPolygon (geom_poly) # if are iterating over features just to update the geometry # to multipolygon you can update the geometry using "feature. So first, my technique is similar to the ray-casting algorithm. How to Calculate the Area of Polygon in ArcMap. By analysis of Mahdi's answer, I concluded that the majority of time was spent doing np. I found the variable 'area' in class bpy. There's a lot more you can do with this very useful python geometry package, so take a look at the Shapely Manual as well as some usage examples. Area of kite = Area of a Trapezoid. By design the image in Step 2 has those holes filled in. For example, to create a square building, you would digitize the four corners, using any combination of methods for creating vertices or segmen. the rectangle drawn below – these will not be counted in the area calculation. For example, if all the inputs are polygons, the output could be polygon, line, or point. I am trying to calculate the area of a polygon within my Python script. Python Program to Calculate the Area of a Triangle In this program, you'll learn to calculate the area of a triangle and display it. Side of a regular n-sided polygon circumscribed in a circle; Determine the position of the third person on regular N sided polygon; Area of a n-sided regular polygon with given side length; Python Program for Find the perimeter of a cylinder; Java Program for Find the perimeter of a cylinder; Program to find the Area and Perimeter of a Semicircle. The Remove rasters from Mosaic Dataset tool does not have the option for spatial query. The code below illustrates the use of ArcPy to remove rasters based on a polygon area of interest. To my surprise the pure Python version was just about as quick as the OGR version. Aug 15, 2016 · The best place to put a text label or a tooltip on a polygon is usually located somewhere in its “visual center,” a point inside a polygon with as much space as possible around it. If a polygon contains holes, it consists of a number of rings. To finish off your code, it's good practice to make your python modular, that way you can plug it in and out of other applications (should you want to use this script as part of another program). TriStrips can be constructed from Polygons with a single statement. Display buildings in 3D Extrude polygons for 3D indoor mapping Add a 3D model Adjust a layer's opacity Animate a line Animate a series of images Animate a point Change building color based on zoom level Change the case of labels Display HTML clusters with custom properties Create and style clusters Change a layer's color with buttons Add a. // (X[i], Y[i]) are coordinates of i'th point. Say, if button is an object in the reckoning, then it is possible to have draw outputs in different forms/ types - check button, round button, square button, button with images, etc. Calculate the area inside of any GeoJSON geometry. I'm using Python 2 right now as it seems most of the courses are teaching Python 2 and not 3. It is helpful to determine the orientation of points in polygon. ## # Python's program to get the day of week of today or given date. This Python program allows the user to enter three sides of the triangle. Here the radius is the distance from the center of any vertex. sum of angles = (n – 2)180°. 以上、評価指標IoUのpythonでの実装についてでした。 ※2018/11/21追記. TriStrips can be constructed from Polygons with a single statement. 13-10-07 Update: Please see the Vincent docs for updated map plotting syntax. I built this area calculator that will calculate square, rectangle, triangle, circle or trapezoid. I want to get the centroid of it, then output to GIS format. In this blog post I’m going to explain an algorithm that we recently designed for finding the largest area rectangle of any orientation that lies inside a given polygon. There are cases when you'd like to let some code run, but if it takes too much time you'd like to stop it. The direction of the computed line is determined by which line is selected as the "Reference line". python program to calculate the area of a regular polygon. containsLocation() containsLocation(point:LatLng, polygon:Polygon) To find whether a given point falls within a polygon, pass the point and the polygon to google. As the concept of irregular polygons is extremely general, knowledge about this concept can be very valuable, both for problem solving and for simple problems in the real world. A shaded region created using a Polygon patch. We can also get the coordinates of each polygon within our feature class. Notice how we are able to call methods which are defined in the same class, as well as methods which are defined on the parent class. This will report both Closed and Open Items as shown in the Dialog ("Closed Area =" vs "Open Area ="). Realize new opportunities and gain insight. Contributions and feedback from the community are strongly encouraged. Students will understand the concept of representing the number of sides of a regular polygon with the variable n. Program to calculate Area of a Polygon is a Mathematics source code in C programming language. Python is a useful scripting language and is the preferred one for ArcGIS. the input field type determines the type of output raster. A Square is a two dimensional object and a four sided regular polygon with all sides equal and positioned at right angles. The polygon closes automatically after you place the number of points specified in the option and you can continue to click to create new polygons in the view without re-selecting the tool. STArea() AS Area, SHAPE. Indicator for the points inside or on the edge of the polygon area, returned as a logical array. rbm) and copy that file into the installation directory of KLayout. It is possible however, to implement such a function in ruby. Calculate the area of a 4x4 square whose bottom left corner sits at the origin of the grid ([0, 0]):. You have probably forgotten to define TKPATH in the Modules/Setup file. To demonstrate the use of inheritance, let us take an example. Shoelace formula for polygonal area You are encouraged to solve this task according to the task description, using any language you may know. Area calculation can be an end in itself to measure the size of a plot of land or a building. How to get polygon centroid points? I have a hydrants layer from CAD that identifies Hydrants with polygon geometry. SetGeometryDirectly(geom_poly)" # Then export geometry to. Write a Python Program to find Area of a Rectangle and Perimeter of a Rectangle with example. The vertices of a polygon are mutable, but the number of vertices is fixed, so you cannot insert new vertices into. Polygon 1 = 1. The library is based on Vatti's clipping algorithm. How to Calculate the Area of a Polygon. This curriculum will expand upon the current 6 freeCodeCamp certifications. Store Manager jobs in Clackamas, OR. If closed is True, the polygon will be closed so the starting and ending points are the same. The code in lines 66-86, creates Rectangle and Circle object and then calls get_area(), get_perimeter(), get_filled(), get_color(), set_color() and set_filled() methods on these objects one by one. This document provides usage examples for using the Python Shapefile Library. """ import doctest import math def heron(a,b,c): """ Uses the heron formula to calculate the area of the triangle where `a`,`b` and `c` are the side lengths. The above function moves the polygon to origin and adds angles to each corner. Given an integer, n, where 3 <= n < 2^32, calculate the area of a regular n-gon with an apothem of 1; the formula for which is n * tan(π / n). The angle between the adjacent sides are 90 degrees ie, all the angles are 90 degrees. The problem is to compute the area and perimeter length of a two-dimensional, closed figure like a room's floor plan, or a plot of land, or any other two-dimensional bounded figure (an "irregular polygon"), regardless of how complex. 13-10-07 Update: Please see the Vincent docs for updated map plotting syntax. You should write a program that will calculate the area of a polygon. This article describes a simple solution to a geometric problem, one that I find described in overly complex ways online. Second, I'll explain my code. They are extracted from open source Python projects. Awhile ago I wrote an article about creating extent polygons using the old arcgisscripting geoprocessing framework at version 931. Because it is based on Python, it also has much to offer for experienced programmers and researchers. You'll get hands the following Deep Learning frameworks in Python. To find the area of a shape, you simple have to measure the shape and plug those measurements. There's a lot more you can do with this very useful python geometry package, so take a look at the Shapely Manual as well as some usage examples. Learn how to leverage premium ArcGIS services to search for places and addresses, find routes and get directions. Regular Polygons with Turtle Graphics: Python. It is helpful to determine the orientation of points in polygon. Below is an example that creates variables and sets them equal to lists of three numbers. For example, if the area of a square is 36, you would divide 36 by 4 and get 9. It the arithmetic mean position of all the points that make up the polygon. The problem of splitting polygon N-ways has now been reduced to splitting polygon into two sub-polygon with specific area. 5 acre polygon and want to split it into 4 polygons. The perpendicular is. This complete article, unmodified, may be freely distributed for educational purposes. The method getArea() that returns the area of the polygon. Deciding if a Point is Inside a Polygon - Pure Python This is not a particularly tricky problem, but there wasn't a Python solution on the net when I went looking. The code in lines 66-86, creates Rectangle and Circle object and then calls get_area(), get_perimeter(), get_filled(), get_color(), set_color() and set_filled() methods on these objects one by one. XSI 3 Foundation and higher (5. Use the Calculate Field tool or the Geometry Calculator instead of the Calculate Areas tool in your workflows and custom script or models tools. 697 Polygon area at index 3 is: 87. So we combine the two to get the mask. Python is a useful scripting language and is the preferred one for ArcGIS. PySAL supports interoperation with the Shapely library through Shapely’s Python Geo Interface. Let's put it through its paces with a complex, real-world problem. shape to get the dimension. Python Polymorphism. Polygon 1 = 1. AREA — Adds an attribute to store the area of each polygon feature. It the arithmetic mean position of all the points that make up the polygon. Use the Calculate Field tool or the Geometry Calculator instead of the Calculate Areas tool in your workflows and custom script or models tools. Python Program To Calculate Area Of Rectangle Using Class. GeoMaster on the TI-84 graphing calculator can’t find the area of a polygon formed by the intersection of two other polygons because GeoMaster doesn’t know that it’s there. Polygon Area in Python/v3 Learn how to find the area of any simple polygon Note: this page is part of the documentation for version 3 of Plotly. Python's geopandas offers an implementation of R-tree to speed up spatial queries. I'm using Python 2 right now as it seems most of the courses are teaching Python 2 and not 3. Calculates an area of a circle with a specific radius. To find the area of an irregular polygon you must first separate the shape into regular polygons, or plane shapes. How to find the area of a regular polygon when given the side lengths. A general polygon patch. So first, my technique is similar to the ray-casting algorithm. Let's say we have a polygon representing the city boundary of Walnut Creek, California:. Please see this page to learn how to setup your environment to use VTK in Python. Select Analysis: Mathematics: Polygon Area from the Origin menu to open the polyarea dialog. Nov 26, 2019 · For all of 2019, we've been working on Version 7. Realize new opportunities and gain insight. In MEL, the values are returned in the same order as the flags are set. Or on a Mac, you can run it using the Python Launcher, rather than Idle. 2-Load application named "car" or directly drag it into the autocad. CreateGeometryFromWkt (poly_wkt) # Force a polygon to multipolygon if geom_poly. Adding the additional. There is a convex polygon on a coordinate plane. Notice how we are able to call methods which are defined in the same class, as well as methods which are defined on the parent class. But if you like corners to be sorted w/o changing the corners then you can use this one:. There are cases when you'd like to let some code run, but if it takes too much time you'd like to stop it. But, I guess I don't understand concept of the recursion. In other words, I want to continually cut my polygon down using rectangles until I am left with regions were the largest-inscribed rectangle is not sharing an edge with the. image filtering¶ functions. Frequency Polygon Frequency Histogram. Then I realized panning/zooming weren't working as intended, so I added a bit of logic to make that work. Because of this difference in size, and being an irregular, fishnet will not work. ForceToMultiPolygon (geom_poly) # if are iterating over features just to update the geometry # to multipolygon you can update the geometry using "feature. [fixed] No easy way to get a polygon's area. To solve this problem, we have drawn one perpendicular from the center to one side. The centroid of a polygon is its "center of mass. where a = length of side. How To: Remove rasters from a mosaic dataset using an area of interest polygon in Python Summary. This is the most simple regular polygon (polygon with equal sides and angles). You should make sure that your. Mar 18, 2019 · Python Polymorphism. In many geoprocessing workflows, you may need to run a specific operation using coordinate and geometry information but don't necessarily want to go through the process of creating a new (temporary) feature class, populating the feature class with cursors, using the feature class, then deleting the temporary feature class. rbm) and copy that file into the installation directory of KLayout. Below is the syntax highlighted version of Polygon. A polygon is regular if its sides are all the same length and the angles between all of the adjacent sides are equal. Dissolving polygons entails combining polygons based upon a unique attribute value and removing the interior geometry. Simple example: R-tree spatial index. , it has no self intersections), then both methods give the same result for all points. In Python, if only one item is requested, then it will not be returned in a dictionary. This is useful if you need to manage your storage space and also if you need to edit files that are otherwise read only. Enter the values and the calculator will provide you with the area and perimeter of polygon. Nov 28, 2016 · How to buffer vectors (from fields) in QGIS using Python Posted on November 28, 2016 April 12, 2017 by howtoinqgis In this task we will use python scripting to buffer the features of a vector layer (using a buffer distance stored in a field) and save it as a memory layer. Did you know? In Euclidean geometry, a regular polygon is a polygon that is equiangular (all angles are equal in measure) and equilateral (all sides have the same length). 6 and reads Polygon/MultiPolygon datasets such as i. When both the frequency histogram and polygon are drawn on the same axes they look like this: The area under the polygon is the same as the area of the histogram. Feb 05, 2015 · Alright, so we know already what kind of coordinate system the data is stored in and we know that there are polygons. Given the number of sides, n, and the length of each side, s, the polygon's area is. How to Determine the Area of a Polygon in OpenLayers 3. No polygon in it. Programming Using Python!!!!! (Geometry: n-sided regular polygon) An n-sided regular polygon’s sides all have the same length and all of its angles have the same degree (i. You'll get hands the following Deep Learning frameworks in Python. STArea() AS Area, SHAPE. So first, my technique is similar to the ray-casting algorithm. RARE Looking Nancy Gonzalez Green Python Snakeskin Clutch Wristlet Backpack Crossbody Pochette. Polygon rings may only intersect in a vertex on the boundary of both rings. 96 FAQ-488 How to get the polygon area within a contour line? Last Update: 10/15/2018. Split the ordered points into two identically ordered lists of the x coordinates and the y coordinates. Start Tutorials. Four different ways are shown, the three of which make use of Excel formulas only, while the last one is a custom VBA function. The python-awips package provides access to the entire AWIPS Maps Database for use in Python GIS applications. Polygon (xy, closed=True, **kwargs) [source] ¶ Bases: matplotlib. This python script finds the area of any regular polygon using one given side length. To find the area of a shape, you simple have to measure the shape and plug those measurements. For any two simple polygons of equal area, the Bolyai-Gerwien theorem asserts that the first can be cut into polygonal pieces which can be reassembled to form the second polygon. x[N], y[N] of a simple polygon described in a clockwise direction, then the polygon's area can be calculated by:. 3D programming in python. To solve this problem, we have drawn one perpendicular from the center to one side. By voting up you can indicate which examples are most useful and appropriate. To calculate the area of a square, multiply the base by itself, which can be expressed as side × side. Anyway, we start with a polygon and find it's area centroid. Map objects are returned as Shapely geometries (Polygon, Point, MultiLineString, etc. polygon synonyms, polygon pronunciation, polygon translation, English dictionary definition of polygon. To solve this problem, we have drawn one perpendicular from the center to one side. Changes since Python 3. 2-Load application named "car" or directly drag it into the autocad. ## # Python's program to get the day of week of today or given date. UPDATE: The class now works with sequences of points. Calculate the area of a polygon. ArcGIS was being problematic to simply load in the 60 million point dataset (let alone spatial join it), so I wrote some python code and will show using python and SPSS how to accomplish…. Use the Calculate Field tool or the Geometry Calculator instead of the Calculate Areas tool in your workflows and custom script or models tools. Summarizing Polygons within Polygons in ArcGIS 10 Problem You've animal locations that you've buffered and you'd like to identify the area of each vegetation type within each buffer. shapetransform() and Turtle. the sides meet at vertices but otherwise do not intersect each other, then there is a general formula for the area. There is a convex polygon on a coordinate plane. ArcGIS geoprocessing tool that overlays a polygon layer with another layer to summarize the number of points, length of the lines, or area of the polygons within each polygon, and calculate attribute field statistics about those features within the polygons. Python is an open-source language, and there is no fee to use it or deploy programs with it. But, I am stuck at how to get the area of overlap. You can calculate the area of a polygon by adding the areas of the trapezoids defined by the polygon's edges dropped to the X-axis. How to write a function that computes the area of an arbitrary polygon – so not necessarily a triangle or rectangle, etc. First, I'd like to explain my methodology. Split the ordered points into two identically ordered lists of the x coordinates and the y coordinates. Polygon Objects¶ Polygons in planar are represented as a sequence of vertices. Area and Perimeter of a circle. Dec 24, 2014 · Split the polygon into two sub-polygons - smaller one with area of , and bigger one with area of ; Continue using the same approach on the bigger polygon till the bigger polygon reduces into polygon with desired area. geometry module defines useful geometry types for working with geographic information and GIS functionality. You then use the regular polygon area formulas to find the area of each of those polygons. Aug 15, 2016 · The best place to put a text label or a tooltip on a polygon is usually located somewhere in its “visual center,” a point inside a polygon with as much space as possible around it. If a polygon contains holes, it consists of a number of rings. any feature class (geodatabase, shapefile, or coverage) containing point or multipoint features can be converted to a raster dataset. By design the image in Step 2 has those holes filled in. Geometry Predicates and Operations ¶ QGIS uses GEOS library for advanced geometry operations such as geometry predicates (contains(), intersects(), …) and set operations (combine(), difference(), …). You will receive the X and Y coordinates of each vertex of the polygon. Here we will see how to get the area of an n-sided regular polygon whose radius is given. Programming Using Python!!!!! (Geometry: n-sided regular polygon) An n-sided regular polygon’s sides all have the same length and all of its angles have the same degree (i. The following are code examples for showing how to use matplotlib. The area that wasn't subtracted (grey) is the area of the polygon. Create a Python program that will draw, using Turtle graphics, a regular polygon, one with each side the same length and each angle of the same size, with the number of sides greater than 2 as chosen by the user. Program or function is defined according the the default definition in meta. By design the image in Step 2 has those holes filled in. By analysis of Mahdi's answer, I concluded that the majority of time was spent doing np. Dec 24, 2014 · Split the polygon into two sub-polygons - smaller one with area of , and bigger one with area of ; Continue using the same approach on the bigger polygon till the bigger polygon reduces into polygon with desired area. Area calculation can be an end in itself to measure the size of a plot of land or a building. i need to perform continuum removal (cr) on a reflectance spectrum data. About measuring distances and areas. Consider three classes polygon, rectangle and triangle, where polygon is the superclass and rectangle and triangle are its subclasses. Visit us @ Source Codes World. Enter the length of the sides for each triangle you use; up to 10 of them. Polygons are a great way to represent the approximate area of land on a map, and it's often helpful to know the area of the polygon you have defined. Each vertex will have coordinates with respect to some coordinate system, like (x1,y1), (x2,y2),,(xn,yn), where 'n' is the last vertex. figtext calls to label the x- and y-axes. If it fails with "No module named Tkinter", your Python configuration need to be changed to include the directory that contains Tkinter. The Algorithm – Area of Polygon. If two adjacent points along the polygon's edges have coordinates (x1, y1) and (x2, y2) as shown in the picture on the right, then the area (shown in blue) of that side's trapezoid is given by:. How To: Remove rasters from a mosaic dataset using an area of interest polygon in Python Summary. Area of kite = Area of a Trapezoid. Let us get the perimeter (length) and the area of those polygons. I get a assigment and i very confused with this cases. here and here). ForceToMultiPolygon (geom_poly) # if are iterating over features just to update the geometry # to multipolygon you can update the geometry using "feature. If you find a bug or wish to suggest new features for the site , file an issue on Github. 15 How do you draw an arc centered at 100, 100 with radius 20, starting angle 15, ending angle 50, filled with red color on canvas?. """ Provides a way to caculate the area of an arbitrary n-sided irregular polygon. Calculates the area and perimeter of a convex polygon. Paul Smith’s presentation on spatial and web mapping with Python at PyCon 2012. Your job is to create a program or function that calculates the area of a polygon. If not, then choose any one point of the first polygon and test whether it is fully inside the second. Content Objective: Students will deduce the general expressions for perimeter and area of an n-sided polygon based on the previous lessons. Only those features that are within or intersect the Output Extent environment setting will be coun. Easily learn the fundamentals of Polygon and Sub-D modeling in XSI. UPDATE: The class now works with sequences of points. The area of a kite is equal to half the product of the diagonals. Perimeter is the distance around the edges. Enter the length of the sides for each triangle you use; up to 10 of them. First, open up an ArcGIS session and load in the polygon data you want to calculate the area on. It uses the same method as in Area of a polygon but does the arithmetic for you. I double cast a ray in both directions and count the intersections individually then OR them together which allows me to catch points on sides like (4,1),(4,4). Polygons are the shapes of our world. // return signed area of polygon public double area (). Mar 23, 2010 · In addition to point-in-polygon, you can also determine whether shapely geometries overlap each other. " If you were to cut the polygon out of cardboard or wood, the centroid would be the point where you could balance the polygon on a pin. You can vote up the examples you like or vote down the ones you don't like. Jul 31, 2012 · How to Calculate the Area of Polygon in ArcMap. This identifies the area in common between the two. Surveyors Formula for Area of a Polygon. Oct 22, 2013 · This will produce a dict containing the coordinate reference system, longitude, latitude, and description of each plaque record. In this formula, the letter n stands for the number of sides, or angles, that the polygon has. A polygon is regular if its sides are all the same length and the angles between all of the adjacent sides are equal. Combine the thresholded image with the inverted flood filled image using bitwise OR operation to obtain the final foreground mask with holes filled in. The Polygon Area tool calculates a non-self-intersecting polygon in XY plane, using the determinant of a multivariate matrix. 25 acres and Polygon 4 = 0. If you want to know how to find. loadData() function will create a polygon using defined corner points in the XML file. Polygon Objects¶ Polygons in planar are represented as a sequence of vertices. Polygons are made of straight lines, and the shape is "closed" (all the lines connect up). AREA —This field stores the total overlapping area between a source polygon and a neighbor polygon (overlapping neighbors). create_polygon((0, 100, 50, 0, 100, 100), fill="red") # get things going mainloop() at the "draw a triangle" level, the main difference is mostly that Tkinter is a bit more likely to be installed on your machine. Here is my code:. Polygon area. (Python) Chapter 3: Repetition 3. 396 Polygon area at index 1 is: 6.

*
***
**