Although this example used a xref:System.Windows.Shapes.Path element to render the xref:System.Windows.Media.RectangleGeometry, there are many other ways to use xref ...
# Write a script that prompts the user to enter base and height of the triangle and calculate an area of this triangle (area = 0.5 x b x h). base = int(input('enter ...